CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!
CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!
Path: blob/main/seminar1/hw1-baseline.ipynb
Views: 63
Kernel: Python 3
In [1]:
In [28]:
In [29]:
In [30]:
In [31]:
In [32]:
In [33]:
array([ 0, 2, 6, 8, 11, 13, 15, 16, 17, 18, 19, 20, 21,
22, 23, 24, 25, 26, 29, 30, 31, 32, 33, 34, 36, 37,
38, 39, 42, 43, 44, 46, 47, 48, 49, 50, 51, 52, 53,
54, 55, 56, 58, 60, 61, 62, 64, 65, 66, 67, 68, 69,
74, 77, 79, 80, 81, 86, 87, 88, 89, 90, 91, 93, 95,
96, 97, 99, 101, 102, 105, 107, 109, 110, 111, 113, 115, 117,
118, 126, 127, 128, 129, 131, 134, 135, 136, 137, 138, 139, 141,
142, 143, 144, 145, 147, 151, 152, 154, 155, 156, 157, 158, 159,
160, 162, 164, 166, 167, 169, 171, 172, 173, 174, 175, 176, 177,
181, 182, 184, 185, 187, 192, 193, 194, 196, 197, 200, 201, 202,
204, 205, 210, 212, 216, 217, 221, 222, 223, 225, 226, 227, 228,
230, 231, 233, 234, 235, 237, 239, 240, 241, 244, 245, 246, 248,
250, 253, 254, 255, 261, 262, 263, 265, 268, 269, 270, 276, 277,
279, 281, 283, 285, 287, 290, 292, 293, 294, 297, 298])
In [34]:
Idea for feature engineering
In [35]:
<matplotlib.axes._subplots.AxesSubplot at 0x7f1b9d283a90>
In [36]:
<matplotlib.axes._subplots.AxesSubplot at 0x7f1b9d0cbf10>
In [37]:
Common ML workflow
In [154]:
In [155]:
In [156]:
In [157]:
In [167]:
LogisticRegression(C=1)
In [168]:
0.7982700892857142
In [169]:
In [170]:
0.7171945701357466
Visualize t-SNE
In [171]:
In [172]:
<matplotlib.collections.PathCollection at 0x7f1b9c548e90>
Build submission
In [227]:
In [228]:
LogisticRegression(C=1)
In [229]:
In [230]:
In [231]:
In [232]:
In [233]: