2% more accuracy ill take it
This commit is contained in:
1 parent
153fa141c3
commit
4f8093f24f
3 files changed
+16220
-16231
No files matched your search
+16205
-16215
File diff suppressed because it is too large.
Load diff
+12
-12
@@ -18,19 +18,19 @@ end_date = datetime.now().strftime("%Y-%m-%d") # Today's date
|
|||||||
# WD10M MERRA-2 Wind Direction at 10 Meters (Degrees)
|
# WD10M MERRA-2 Wind Direction at 10 Meters (Degrees)
|
||||||
# more at https://power.larc.nasa.gov/data-access-viewer/
|
# more at https://power.larc.nasa.gov/data-access-viewer/
|
||||||
weather_params = [
|
weather_params = [
|
||||||
"T2M",
|
# "T2M",
|
||||||
"T2M_MAX",
|
# "T2M_MAX",
|
||||||
"T2M_MIN",
|
# "T2M_MIN",
|
||||||
"T2MDEW",
|
# "T2MDEW",
|
||||||
"PRECTOTCORR",
|
# "PRECTOTCORR",
|
||||||
"QV2M",
|
"QV2M",
|
||||||
"RH2M",
|
# "RH2M",
|
||||||
"PS",
|
# "PS",
|
||||||
"CLOUD_AMT",
|
# "CLOUD_AMT",
|
||||||
"WS10M",
|
# "WS10M",
|
||||||
"WD10M",
|
# "WD10M",
|
||||||
"ALLSKY_KT",
|
# "ALLSKY_KT",
|
||||||
"ALLSKY_SFC_SW_DWN",
|
# "ALLSKY_SFC_SW_DWN",
|
||||||
]
|
]
|
||||||
|
|
||||||
params = {
|
params = {
|
||||||
|
|||||||
+3
-4
@@ -49,12 +49,11 @@ X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.02, shuffl
|
|||||||
|
|
||||||
# 5. Train linear regression model
|
# 5. Train linear regression model
|
||||||
model = RandomForestRegressor(
|
model = RandomForestRegressor(
|
||||||
n_estimators=1000, # Number of trees
|
n_estimators=200, # Number of trees
|
||||||
max_features='sqrt', # Features considered at each split
|
# max_features='sqrt', # Features considered at each split
|
||||||
max_depth=100, # Maximum depth of each tree
|
# max_depth=30, # Maximum depth of each tree
|
||||||
# n_jobs=-1, # Use all CPU cores
|
# n_jobs=-1, # Use all CPU cores
|
||||||
random_state=42 # Reproducibility
|
random_state=42 # Reproducibility
|
||||||
|
|
||||||
)
|
)
|
||||||
model.fit(X_train, y_train)
|
model.fit(X_train, y_train)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user