PSEi Stock Market
[*********************100%***********************] 1 of 1 completed
2014-01-01 00:00:00
5923.720215
6195.640137
2014-02-01 00:00:00
6041.77002
6424.990234
2014-03-01 00:00:00
6424.850098
6550.939941
2014-04-01 00:00:00
6429.560059
6815.259766
2014-05-01 00:00:00
6707.910156
6908.589844
Populate Tables
2015-07-01 00:00:00
7509
7550
2015-08-01 00:00:00
7563.439941
7098.810059
2015-09-01 00:00:00
7065.089844
6893.97998
2015-10-01 00:00:00
6899.259766
7134.259766
2015-11-01 00:00:00
7206.879883
6927.069824
0
Open
[-0.00022547]
1
Close
[0.00017419]
2
Inflation
[0.16695338]
3
GDP
[-0.01161822]
0
0.4764912132
0.5235087868
1
0.411239839
0.588760161
2
0.4164706567
0.5835293433
3
0.4067835842
0.5932164158
4
0.3834124947
0.6165875053
5
0.3842021873
0.6157978127
6
0.4451428392
0.5548571608
7
0.3846666958
0.6153333042
8
0.3731972614
0.6268027386
9
0.3800942876
0.6199057124
Confusion Matrix
0
0
0
1
8
9
Logistic Regression model Accuracy: 52%
Linear Regression model Accuracy: 83%
/opt/conda/lib/python3.8/site-packages/sklearn/metrics/_classification.py:1344: UndefinedMetricWarning: Precision and F-score are ill-defined and being set to 0.0 in labels with no predicted samples. Use `zero_division` parameter to control this behavior.
_warn_prf(average, modifier, msg_start, len(result))
/opt/conda/lib/python3.8/site-packages/sklearn/metrics/_classification.py:1344: UndefinedMetricWarning: Precision and F-score are ill-defined and being set to 0.0 in labels with no predicted samples. Use `zero_division` parameter to control this behavior.
_warn_prf(average, modifier, msg_start, len(result))
/opt/conda/lib/python3.8/site-packages/sklearn/metrics/_classification.py:1344: UndefinedMetricWarning: Precision and F-score are ill-defined and being set to 0.0 in labels with no predicted samples. Use `zero_division` parameter to control this behavior.
_warn_prf(average, modifier, msg_start, len(result))
-1
0
0
1
0.5294117647
1
accuracy
0.5294117647
0.5294117647
macro avg
0.2647058824
0.5
weighted avg
0.2802768166
0.5294117647
From 2000 - 2024
From 2014-2024