Skip to content

Commit 8109eb1

Browse files
committed
Initial Commit
1 parent 206db70 commit 8109eb1

25 files changed

Lines changed: 4135 additions & 0 deletions

Data Analysis.ipynb

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "code",
5+
"execution_count": null,
6+
"metadata": {},
7+
"outputs": [],
8+
"source": []
9+
}
10+
],
11+
"metadata": {
12+
"kernelspec": {
13+
"display_name": "Python 3",
14+
"language": "python",
15+
"name": "python3"
16+
},
17+
"language_info": {
18+
"codemirror_mode": {
19+
"name": "ipython",
20+
"version": 3
21+
},
22+
"file_extension": ".py",
23+
"mimetype": "text/x-python",
24+
"name": "python",
25+
"nbconvert_exporter": "python",
26+
"pygments_lexer": "ipython3",
27+
"version": "3.7.3"
28+
}
29+
},
30+
"nbformat": 4,
31+
"nbformat_minor": 2
32+
}

Kafka/Alan Binu (1).pdf

-241 KB
Binary file not shown.

Machine Learing.ipynb

Lines changed: 154 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,154 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "code",
5+
"execution_count": 2,
6+
"metadata": {},
7+
"outputs": [],
8+
"source": [
9+
"import sklearn"
10+
]
11+
},
12+
{
13+
"cell_type": "code",
14+
"execution_count": 3,
15+
"metadata": {},
16+
"outputs": [],
17+
"source": [
18+
"from sklearn import tree"
19+
]
20+
},
21+
{
22+
"cell_type": "code",
23+
"execution_count": 4,
24+
"metadata": {},
25+
"outputs": [],
26+
"source": [
27+
"feature = [[140,1], [130,1], [150,0], [170,0]]"
28+
]
29+
},
30+
{
31+
"cell_type": "code",
32+
"execution_count": 5,
33+
"metadata": {},
34+
"outputs": [],
35+
"source": [
36+
"labels = [0,0,1,1]"
37+
]
38+
},
39+
{
40+
"cell_type": "code",
41+
"execution_count": 6,
42+
"metadata": {},
43+
"outputs": [],
44+
"source": [
45+
"clf = tree.DecisionTreeClassifier()"
46+
]
47+
},
48+
{
49+
"cell_type": "code",
50+
"execution_count": 7,
51+
"metadata": {},
52+
"outputs": [],
53+
"source": [
54+
"clf = clf.fit(feature, labels)"
55+
]
56+
},
57+
{
58+
"cell_type": "code",
59+
"execution_count": 8,
60+
"metadata": {},
61+
"outputs": [
62+
{
63+
"name": "stdout",
64+
"output_type": "stream",
65+
"text": [
66+
"[0]\n"
67+
]
68+
}
69+
],
70+
"source": [
71+
"print (clf.predict([[140 ,1]]))"
72+
]
73+
},
74+
{
75+
"cell_type": "code",
76+
"execution_count": 36,
77+
"metadata": {},
78+
"outputs": [
79+
{
80+
"name": "stdout",
81+
"output_type": "stream",
82+
"text": [
83+
"Hai\n"
84+
]
85+
}
86+
],
87+
"source": [
88+
"print (\"Hai\")"
89+
]
90+
},
91+
{
92+
"cell_type": "code",
93+
"execution_count": 37,
94+
"metadata": {},
95+
"outputs": [
96+
{
97+
"ename": "SyntaxError",
98+
"evalue": "invalid syntax (<ipython-input-37-30e4b305287b>, line 1)",
99+
"output_type": "error",
100+
"traceback": [
101+
"\u001b[1;36m File \u001b[1;32m\"<ipython-input-37-30e4b305287b>\"\u001b[1;36m, line \u001b[1;32m1\u001b[0m\n\u001b[1;33m print clf.predict([[150 ,0]])\u001b[0m\n\u001b[1;37m ^\u001b[0m\n\u001b[1;31mSyntaxError\u001b[0m\u001b[1;31m:\u001b[0m invalid syntax\n"
102+
]
103+
}
104+
],
105+
"source": []
106+
},
107+
{
108+
"cell_type": "code",
109+
"execution_count": 38,
110+
"metadata": {},
111+
"outputs": [
112+
{
113+
"ename": "SyntaxError",
114+
"evalue": "invalid syntax (<ipython-input-38-9061797bd108>, line 1)",
115+
"output_type": "error",
116+
"traceback": [
117+
"\u001b[1;36m File \u001b[1;32m\"<ipython-input-38-9061797bd108>\"\u001b[1;36m, line \u001b[1;32m1\u001b[0m\n\u001b[1;33m print clf.predict([[130 ,1]])\u001b[0m\n\u001b[1;37m ^\u001b[0m\n\u001b[1;31mSyntaxError\u001b[0m\u001b[1;31m:\u001b[0m invalid syntax\n"
118+
]
119+
}
120+
],
121+
"source": [
122+
"print clf.predict([[130 ,1]])"
123+
]
124+
},
125+
{
126+
"cell_type": "code",
127+
"execution_count": null,
128+
"metadata": {},
129+
"outputs": [],
130+
"source": []
131+
}
132+
],
133+
"metadata": {
134+
"kernelspec": {
135+
"display_name": "Python 3",
136+
"language": "python",
137+
"name": "python3"
138+
},
139+
"language_info": {
140+
"codemirror_mode": {
141+
"name": "ipython",
142+
"version": 3
143+
},
144+
"file_extension": ".py",
145+
"mimetype": "text/x-python",
146+
"name": "python",
147+
"nbconvert_exporter": "python",
148+
"pygments_lexer": "ipython3",
149+
"version": "3.7.3"
150+
}
151+
},
152+
"nbformat": 4,
153+
"nbformat_minor": 2
154+
}

Sample.ipynb

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "code",
5+
"execution_count": null,
6+
"metadata": {},
7+
"outputs": [],
8+
"source": []
9+
}
10+
],
11+
"metadata": {
12+
"kernelspec": {
13+
"display_name": "Python 3",
14+
"language": "python",
15+
"name": "python3"
16+
},
17+
"language_info": {
18+
"codemirror_mode": {
19+
"name": "ipython",
20+
"version": 3
21+
},
22+
"file_extension": ".py",
23+
"mimetype": "text/x-python",
24+
"name": "python",
25+
"nbconvert_exporter": "python",
26+
"pygments_lexer": "ipython3",
27+
"version": "3.7.3"
28+
}
29+
},
30+
"nbformat": 4,
31+
"nbformat_minor": 2
32+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit 60dcf8edb6f4936b280d9ccff2ea015a06bf0e47

0 commit comments

Comments
 (0)