Skip to content

Commit 0f858dc

Browse files
Updating the logic of execution and the inputs to the pipeline to make it more generic
1 parent fa3a5c5 commit 0f858dc

File tree

15 files changed

+2072
-164
lines changed

15 files changed

+2072
-164
lines changed

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
build/
2+
venv/
3+
venv37/
4+
dist/
5+
ray-graphs.egginfo/
6+
.idea/
7+
.ipynb_checkpoints/

Cross Product.ipynb

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "code",
5+
"execution_count": 3,
6+
"id": "weighted-money",
7+
"metadata": {},
8+
"outputs": [],
9+
"source": [
10+
"l1 = [1, 2, 3]\n",
11+
"l2 = [4, 5, 6]\n",
12+
"l3 = [7, 8, 9]"
13+
]
14+
},
15+
{
16+
"cell_type": "code",
17+
"execution_count": 4,
18+
"id": "relevant-conclusion",
19+
"metadata": {},
20+
"outputs": [],
21+
"source": [
22+
"%config IPCompleter.use_jedi = False"
23+
]
24+
},
25+
{
26+
"cell_type": "code",
27+
"execution_count": 5,
28+
"id": "downtown-alignment",
29+
"metadata": {},
30+
"outputs": [],
31+
"source": [
32+
"import itertools"
33+
]
34+
},
35+
{
36+
"cell_type": "code",
37+
"execution_count": 6,
38+
"id": "raising-millennium",
39+
"metadata": {},
40+
"outputs": [],
41+
"source": [
42+
"lists = [l1, l2, l3]"
43+
]
44+
},
45+
{
46+
"cell_type": "code",
47+
"execution_count": 20,
48+
"id": "changed-residence",
49+
"metadata": {},
50+
"outputs": [],
51+
"source": [
52+
"cp = itertools.product(*lists)"
53+
]
54+
},
55+
{
56+
"cell_type": "code",
57+
"execution_count": 21,
58+
"id": "operating-cartoon",
59+
"metadata": {},
60+
"outputs": [
61+
{
62+
"ename": "TypeError",
63+
"evalue": "type.__new__() argument 1 must be str, not int",
64+
"output_type": "error",
65+
"traceback": [
66+
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
67+
"\u001b[0;31mTypeError\u001b[0m Traceback (most recent call last)",
68+
"\u001b[0;32m<ipython-input-21-9bdb4cb8b88a>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[1;32m 1\u001b[0m \u001b[0;32mfor\u001b[0m \u001b[0mele\u001b[0m \u001b[0;32min\u001b[0m \u001b[0mcp\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m----> 2\u001b[0;31m \u001b[0mprint\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mtype\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m*\u001b[0m\u001b[0mele\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m",
69+
"\u001b[0;31mTypeError\u001b[0m: type.__new__() argument 1 must be str, not int"
70+
]
71+
}
72+
],
73+
"source": [
74+
"for ele in cp:\n",
75+
" print(type(*ele))"
76+
]
77+
},
78+
{
79+
"cell_type": "code",
80+
"execution_count": null,
81+
"id": "upper-kansas",
82+
"metadata": {},
83+
"outputs": [],
84+
"source": [
85+
"def myfun(x):\n",
86+
" print()"
87+
]
88+
}
89+
],
90+
"metadata": {
91+
"kernelspec": {
92+
"display_name": "Python 3",
93+
"language": "python",
94+
"name": "python3"
95+
},
96+
"language_info": {
97+
"codemirror_mode": {
98+
"name": "ipython",
99+
"version": 3
100+
},
101+
"file_extension": ".py",
102+
"mimetype": "text/x-python",
103+
"name": "python",
104+
"nbconvert_exporter": "python",
105+
"pygments_lexer": "ipython3",
106+
"version": "3.7.9"
107+
}
108+
},
109+
"nbformat": 4,
110+
"nbformat_minor": 5
111+
}

0 commit comments

Comments
 (0)