| \n", " | date | \n", "day | \n", "period | \n", "nswprice | \n", "nswdemand | \n", "vicprice | \n", "vicdemand | \n", "transfer | \n", "class | \n", "
|---|---|---|---|---|---|---|---|---|---|
| 0 | \n", "0.0 | \n", "2 | \n", "0.000000 | \n", "0.056443 | \n", "0.439155 | \n", "0.003467 | \n", "0.422915 | \n", "0.414912 | \n", "UP | \n", "
| 1 | \n", "0.0 | \n", "2 | \n", "0.021277 | \n", "0.051699 | \n", "0.415055 | \n", "0.003467 | \n", "0.422915 | \n", "0.414912 | \n", "UP | \n", "
| 2 | \n", "0.0 | \n", "2 | \n", "0.042553 | \n", "0.051489 | \n", "0.385004 | \n", "0.003467 | \n", "0.422915 | \n", "0.414912 | \n", "UP | \n", "
| 3 | \n", "0.0 | \n", "2 | \n", "0.063830 | \n", "0.045485 | \n", "0.314639 | \n", "0.003467 | \n", "0.422915 | \n", "0.414912 | \n", "UP | \n", "
| 4 | \n", "0.0 | \n", "2 | \n", "0.085106 | \n", "0.042482 | \n", "0.251116 | \n", "0.003467 | \n", "0.422915 | \n", "0.414912 | \n", "DOWN | \n", "
| 5 | \n", "0.0 | \n", "2 | \n", "0.106383 | \n", "0.041161 | \n", "0.207528 | \n", "0.003467 | \n", "0.422915 | \n", "0.414912 | \n", "DOWN | \n", "
| 6 | \n", "0.0 | \n", "2 | \n", "0.127660 | \n", "0.041161 | \n", "0.171824 | \n", "0.003467 | \n", "0.422915 | \n", "0.414912 | \n", "DOWN | \n", "
| 7 | \n", "0.0 | \n", "2 | \n", "0.148936 | \n", "0.041161 | \n", "0.152782 | \n", "0.003467 | \n", "0.422915 | \n", "0.414912 | \n", "DOWN | \n", "
| 8 | \n", "0.0 | \n", "2 | \n", "0.170213 | \n", "0.041161 | \n", "0.134930 | \n", "0.003467 | \n", "0.422915 | \n", "0.414912 | \n", "DOWN | \n", "
| 9 | \n", "0.0 | \n", "2 | \n", "0.191489 | \n", "0.041161 | \n", "0.140583 | \n", "0.003467 | \n", "0.422915 | \n", "0.414912 | \n", "DOWN | \n", "
| \n", " | date | \n", "day | \n", "period | \n", "nswprice | \n", "nswdemand | \n", "vicprice | \n", "vicdemand | \n", "transfer | \n", "
|---|---|---|---|---|---|---|---|---|
| count | \n", "45312.000000 | \n", "45312.000000 | \n", "45312.000000 | \n", "45312.000000 | \n", "45312.000000 | \n", "45312.000000 | \n", "45312.000000 | \n", "45312.000000 | \n", "
| mean | \n", "0.499080 | \n", "4.003178 | \n", "0.500000 | \n", "0.057868 | \n", "0.425418 | \n", "0.003467 | \n", "0.422915 | \n", "0.500526 | \n", "
| std | \n", "0.340308 | \n", "1.998695 | \n", "0.294756 | \n", "0.039991 | \n", "0.163323 | \n", "0.010213 | \n", "0.120965 | \n", "0.153373 | \n", "
| min | \n", "0.000000 | \n", "1.000000 | \n", "0.000000 | \n", "0.000000 | \n", "0.000000 | \n", "0.000000 | \n", "0.000000 | \n", "0.000000 | \n", "
| 25% | \n", "0.031934 | \n", "2.000000 | \n", "0.250000 | \n", "0.035127 | \n", "0.309134 | \n", "0.002277 | \n", "0.372346 | \n", "0.414912 | \n", "
| 50% | \n", "0.456329 | \n", "4.000000 | \n", "0.500000 | \n", "0.048652 | \n", "0.443693 | \n", "0.003467 | \n", "0.422915 | \n", "0.414912 | \n", "
| 75% | \n", "0.880547 | \n", "6.000000 | \n", "0.750000 | \n", "0.074336 | \n", "0.536001 | \n", "0.003467 | \n", "0.469252 | \n", "0.605702 | \n", "
| max | \n", "1.000000 | \n", "7.000000 | \n", "1.000000 | \n", "1.000000 | \n", "1.000000 | \n", "1.000000 | \n", "1.000000 | \n", "1.000000 | \n", "
VotingClassifier(estimators=[('log_reg', LogisticRegression()),\n",
" ('svc', SVC(random_state=1)),\n",
" ('sgd', SGDClassifier(random_state=1))])In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook. VotingClassifier(estimators=[('log_reg', LogisticRegression()),\n",
" ('svc', SVC(random_state=1)),\n",
" ('sgd', SGDClassifier(random_state=1))])LogisticRegression()
SVC(random_state=1)
SGDClassifier(random_state=1)
VotingClassifier(estimators=[('log_reg', LogisticRegression()),\n",
" ('svc', SVC(gamma='auto', probability=True)),\n",
" ('knn', KNeighborsClassifier())],\n",
" voting='soft')In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook. VotingClassifier(estimators=[('log_reg', LogisticRegression()),\n",
" ('svc', SVC(gamma='auto', probability=True)),\n",
" ('knn', KNeighborsClassifier())],\n",
" voting='soft')LogisticRegression()
SVC(gamma='auto', probability=True)
KNeighborsClassifier()
BaggingClassifier(estimator=DecisionTreeClassifier(class_weight='balanced'),\n",
" max_features=0.5, max_samples=0.5)In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook. BaggingClassifier(estimator=DecisionTreeClassifier(class_weight='balanced'),\n",
" max_features=0.5, max_samples=0.5)DecisionTreeClassifier(class_weight='balanced')
DecisionTreeClassifier(class_weight='balanced')
GradientBoostingClassifier(learning_rate=0.8, max_depth=2, n_estimators=500,\n",
" random_state=42)In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook. GradientBoostingClassifier(learning_rate=0.8, max_depth=2, n_estimators=500,\n",
" random_state=42)XGBClassifier(base_score=None, booster=None, callbacks=None,\n",
" colsample_bylevel=None, colsample_bynode=None,\n",
" colsample_bytree=None, device=None, early_stopping_rounds=None,\n",
" enable_categorical=False, eval_metric=None, feature_types=None,\n",
" gamma=None, grow_policy=None, importance_type=None,\n",
" interaction_constraints=None, learning_rate=None, max_bin=None,\n",
" max_cat_threshold=None, max_cat_to_onehot=None,\n",
" max_delta_step=None, max_depth=None, max_leaves=None,\n",
" min_child_weight=None, missing=nan, monotone_constraints=None,\n",
" multi_strategy=None, n_estimators=None, n_jobs=None,\n",
" num_parallel_tree=None, random_state=None, ...)In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook. XGBClassifier(base_score=None, booster=None, callbacks=None,\n",
" colsample_bylevel=None, colsample_bynode=None,\n",
" colsample_bytree=None, device=None, early_stopping_rounds=None,\n",
" enable_categorical=False, eval_metric=None, feature_types=None,\n",
" gamma=None, grow_policy=None, importance_type=None,\n",
" interaction_constraints=None, learning_rate=None, max_bin=None,\n",
" max_cat_threshold=None, max_cat_to_onehot=None,\n",
" max_delta_step=None, max_depth=None, max_leaves=None,\n",
" min_child_weight=None, missing=nan, monotone_constraints=None,\n",
" multi_strategy=None, n_estimators=None, n_jobs=None,\n",
" num_parallel_tree=None, random_state=None, ...)LGBMClassifier()In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook.
LGBMClassifier()
LGBMClassifier(num_leaves=100)In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook.
LGBMClassifier(num_leaves=100)
AdaBoostClassifier(base_estimator=DecisionTreeClassifier(class_weight='balanced',\n",
" max_depth=3),\n",
" learning_rate=0.5, n_estimators=300)In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook. AdaBoostClassifier(base_estimator=DecisionTreeClassifier(class_weight='balanced',\n",
" max_depth=3),\n",
" learning_rate=0.5, n_estimators=300)DecisionTreeClassifier(class_weight='balanced', max_depth=3)
DecisionTreeClassifier(class_weight='balanced', max_depth=3)
StackingClassifier(estimators=[('rand',\n",
" RandomForestClassifier(random_state=42)),\n",
" ('svc', SVC(random_state=42))],\n",
" final_estimator=LogisticRegression())In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook. StackingClassifier(estimators=[('rand',\n",
" RandomForestClassifier(random_state=42)),\n",
" ('svc', SVC(random_state=42))],\n",
" final_estimator=LogisticRegression())RandomForestClassifier(random_state=42)
SVC(random_state=42)
LogisticRegression()