mirror of
https://github.com/Hestia-Homes/ML.git
synced 2026-06-08 11:17:25 +00:00
add keep only non negative carbon change to carbon model
This commit is contained in:
parent
718003b3d9
commit
ae53499742
2 changed files with 6 additions and 0 deletions
|
|
@ -23,6 +23,11 @@ def keep_negative_heat_change(df):
|
|||
return df
|
||||
|
||||
|
||||
def keep_non_negative_carbon_ending(df):
|
||||
df = df[df["CARBON_ENDING"] > 0]
|
||||
return df
|
||||
|
||||
|
||||
def keep_negative_carbon_change(df):
|
||||
df = df[df["CARBON_CHANGE"] < 0]
|
||||
return df
|
||||
|
|
@ -68,6 +73,7 @@ business_logic = {
|
|||
"keep_negative_carbon_change": keep_negative_carbon_change,
|
||||
"remove_top_1_percent_heat_demand": remove_top_1_percent_heat_demand,
|
||||
"remove_top_1_percent_carbon": remove_top_1_percent_carbon,
|
||||
"keep_non_negative_carbon_ending": keep_non_negative_carbon_ending
|
||||
# "remove_starting_columns": remove_starting_columns
|
||||
# "keep_ENDING_COLUMNS": keep_ending_columns
|
||||
}
|
||||
|
|
|
|||
0
modules/ml-pipeline/src/pipeline/example.py
Normal file
0
modules/ml-pipeline/src/pipeline/example.py
Normal file
Loading…
Add table
Reference in a new issue