Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
b9994af
first commit
robertvatasoiu Oct 7, 2021
c5cb271
second commit
robertvatasoiu Oct 7, 2021
cf26afa
third commit
robertvatasoiu Oct 8, 2021
adff51f
commit
robertvatasoiu Oct 8, 2021
cb0d04a
commit
robertvatasoiu Oct 9, 2021
bcce09a
commit
robertvatasoiu Oct 9, 2021
b2e9796
Merge branch 'CMIResearchRo:main' into main
robertvatasoiu Oct 12, 2021
b597511
tema2
robertvatasoiu Oct 17, 2021
dd8d7c2
tema_2
robertvatasoiu Oct 17, 2021
03611ec
Merge branch 'CMIResearchRo:main' into main
robertvatasoiu Oct 19, 2021
94cbba6
late changes
robertvatasoiu Oct 30, 2021
8324b3f
pep8 stileeee :)
robertvatasoiu Oct 31, 2021
8746264
Merge branch 'main' of https://github.com/robertvatasoiu/ds-homework
robertvatasoiu Oct 31, 2021
6d9b5be
pep8
robertvatasoiu Oct 31, 2021
00d6e37
good names
robertvatasoiu Oct 31, 2021
62e7267
good variable names
robertvatasoiu Oct 31, 2021
22d2554
short code + good names + pep8
robertvatasoiu Oct 31, 2021
dfd533a
short code + good names +pep8
robertvatasoiu Oct 31, 2021
96893a9
Merge branch 'CMIResearchRo:main' into main
robertvatasoiu Nov 4, 2021
8e3575c
Merge branch 'CMIResearchRo:main' into main
robertvatasoiu Nov 8, 2021
b6f8cd7
not finished, sorry
robertvatasoiu Nov 15, 2021
429d152
not finished
robertvatasoiu Nov 15, 2021
37d6151
not done
robertvatasoiu Nov 15, 2021
608ef0d
late homework
robertvatasoiu Nov 16, 2021
9c9cd15
c
robertvatasoiu Dec 22, 2021
e837490
Merge branch 'main' of https://github.com/CMIResearchRo/ds-homework i…
robertvatasoiu Dec 22, 2021
f321dfc
ccc
robertvatasoiu Dec 22, 2021
3f996ab
ddd
robertvatasoiu Dec 22, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ceva.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"9": "JxdI", "0": "WqAfKV", "7": "Qbuqd"}
428 changes: 428 additions & 0 deletions data-science/data-science-7.ipynb/data-science.ipynb

Large diffs are not rendered by default.

8 changes: 7 additions & 1 deletion homework3-oop/ex1.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,10 @@
functionality in it (besides all_implemented()).
The explanations for what the methods should do are mainly for the classes
that will extend the Animal class.
"""
"""


from abc import ABC

class Animal(ABC):
pass
1,886 changes: 1,868 additions & 18 deletions homework4-ds/homework4.ipynb

Large diffs are not rendered by default.

75 changes: 43 additions & 32 deletions homework5-ds/ex1.ipynb
Original file line number Diff line number Diff line change
@@ -1,32 +1,8 @@
{
"metadata": {
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.3-final"
},
"orig_nbformat": 2,
"kernelspec": {
"name": "python3",
"display_name": "Python 3.8.3 64-bit ('base': conda)",
"metadata": {
"interpreter": {
"hash": "dca0ade3e726a953b501b15e8e990130d2b7799f14cfd9f4271676035ebe5511"
}
}
}
},
"nbformat": 4,
"nbformat_minor": 2,
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Create a model for predicting the burned area of for a forest fire using primarily meteorological data. \n",
"\n",
Expand All @@ -44,16 +20,51 @@
" 6. Agree on a metric (i.e. RMSE)\n",
" 6. Develop a regression model (start with simple models and then grow in complexity)\n",
" 7. Analyse the results for train + test data and compare different models"
],
"cell_type": "markdown",
"metadata": {}
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"import numpy as np"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
"source": [
"import matplotlib as mp"
]
}
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3.8.3 64-bit ('base': conda)",
"metadata": {
"interpreter": {
"hash": "dca0ade3e726a953b501b15e8e990130d2b7799f14cfd9f4271676035ebe5511"
}
},
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.8"
},
"orig_nbformat": 2
},
"nbformat": 4,
"nbformat_minor": 2
}
1 change: 1 addition & 0 deletions output11.data
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CMI
1 change: 1 addition & 0 deletions output12.data
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
None
7 changes: 7 additions & 0 deletions output17.data
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
bVkrhUNhN
hDM
OwNs
HoItDfsP
oGilUQPh
NkUArlqu
beZjCyOE
4 changes: 4 additions & 0 deletions session3/ex1.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@

# Afisam lista. Pentru a vedea rezultatul, rulati acest script.
print(l1)

l1.append(10)

print(l1)
9 changes: 9 additions & 0 deletions session3/ex10.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,14 @@
# In varaibila d1 avem un dictionar gol
d1 = {}


for i in range(0, len(l1)):
d1[l1[0]]=l2[0]
d1[l1[1]]=l2[1]
d1[l1[2]]=l2[2]
d1[l1[3]]=l2[3]

print(d1)

# Afisam listele l1 si l2
print(l1, l2)
9 changes: 8 additions & 1 deletion session3/ex11.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,11 @@
3
5
cate un singur numar pe linie.
"""
"""

x=input("Introduceti numarul de la tastatura:")
y=int(x)

for i in range(0, y):
if i%2!=0:
print(i)
16 changes: 15 additions & 1 deletion session3/ex12.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,18 @@
exemplu:
Veti primi 6, veti afisa [1, 2, 3, 4, 5]
Veti primi 5, veti afisa [1, 4, 9, 16]
"""
"""

x=input("Introduceti numarul de la tastatura:")
y=int(x)
l=[]
if y%2==0:
for i in range(0, y):
l.append(i)
else:
for i in range(0, y):
l.append(i**2)

print(l)

#am afisat si 0, sa nu facem discriminari
9 changes: 8 additions & 1 deletion session3/ex13.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,11 @@
exemplu:
Veti primi: 2 si 3
Veti printa: 8
"""
"""
l=[]
for i in range (0, 2):
numbers=int(input())
l.append(numbers)

power=l[0]**l[1]
print(f"{l[0]} la puterea {l[1]} este: ",power)
5 changes: 4 additions & 1 deletion session3/ex14.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@
exemplu:
Veti primi: 'cmi'
Veti printa: 3
"""
"""

x=input()
print(len(x))
10 changes: 9 additions & 1 deletion session3/ex15.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,12 @@
exemplu:
Veti primi: 'cmi'
Veti printa: 1
"""
"""
a=0
x=input()
for i in x:
if (i=='a') or (i=='e') or (i=='i') or (i=='o') or (i=='u'):
a+=1


print(a)
12 changes: 11 additions & 1 deletion session3/ex16.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,14 @@
exemplu:
Veti primi: 'cmi'
Veti printa: 'cmicmicmi'
"""
"""

x=input()

#first method
y=x+x+x
#second method
z=x*3

print(y)
print(z)
12 changes: 11 additions & 1 deletion session3/ex17.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,14 @@
exemplu:
Veti primi: 'cmi', 5
Veti printa: 'cmicmicmicmicmi'
"""
"""


inputs=[]
for i in range(0,2):
inputs.append(input())


x=inputs[0] * int(inputs[1])
print(x)

15 changes: 14 additions & 1 deletion session3/ex18.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,17 @@
exemplu:
Veti primi: 'Center for Intelligent Machines', 2, 5
Veti printa: 'nter'
"""
"""

inputs=[]

for i in range(0,3):
inputs.append(input())

print(inputs)
x=inputs[0]
y=int(inputs[1])
z=int(inputs[2])
print(x[y:z+1])


9 changes: 8 additions & 1 deletion session3/ex19.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,11 @@
exemplu:
Veti primi: 'cmi'
Veti printa: ('c', 'm', 'i')
"""
"""
t=[]
x=input()
for i in x:
t.append(i)

d=tuple(t)
print(d)
2 changes: 2 additions & 0 deletions session3/ex2.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@
# Pentru a vedea rezultatul, rulati acest script.
print(l1)
print(l2)
l3 = l1 + l2
print(l3)
13 changes: 13 additions & 0 deletions session3/ex20.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,16 @@
2: 'i'
}
"""
q=[]
for i in range(0, 2):
i=input()
q.append(i)

word=q[0]
number=int(q[1])

d={}
for i in range(0, len(word)):
d[i]=word[i]

print(d)
14 changes: 14 additions & 0 deletions session3/ex21.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,17 @@
Veti primi: 'cmi', 'center', 'for', 'machines'
Veti printa: ['cm', 'cente', 'fo', 'machine']
"""
x=[]

while True:
y=input()
if y!='exit':
x.append(y)
else:
break

l=[]
for i in x:
l.append(i[:-1])

print(l)
11 changes: 11 additions & 0 deletions session3/ex22.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,14 @@
Veti primi: 'center'
Veti printa: 'CeNtEr'
"""
x = input()
s = []
for i in range(0, len(x), 2):
d = x[i].lower()


print(x)


# nu functioneaza lower

7 changes: 7 additions & 0 deletions session3/ex23.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,10 @@
Veti primi: 'cojoc'
Veti printa: True
"""

x=input()

if x==x[::-1]:
print('True')
else:
print('False')
17 changes: 17 additions & 0 deletions session3/ex24.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,20 @@
Veti primi: 1232
Veti printa: False
"""
x=input()
number=int(x)
numarvechi=number
invers=0
while number>0:
rest=number%10
invers=invers*10 + rest
number=number//10

print(invers)
print(number)
if invers!=numarvechi:
print('False')
else:
print('True')

#imi afiseaza doar False
Loading