data science code example
Example 1: datascience
- basic notion in algorithmic
2- basic notion in mathematical and statistical
3- know one or more programming languages from this list:
-Python
-C++
-C
-Java
-etc...
4- Knowing these libraries is the basis in the case of python:
a- Pandas
b - Numpy
c - Scikit Learn
d - Matpolib
e - Seaborn
f -Statsmodels
g - Keras
h - NetworkX
i - BeautifulSoup
j - NLTK (Text_mining)
5- work, work and work to master all concepts around datascience
Example 2: python for data science
from sklearn.model_selection import train_test_split
from sklearn.neural_network import MLPRegressor
df=pd.read_csv('your_dataset')
X_train, X_test, y_train, y_test = train_test_split(feature,
target,
test_size=0.2,
random_state=4)
MLPRegressor.fit(X_trian,y_train)
y_predicted=MLPRegressor.predict(X_test)
r2_score(y_test,y_predicted)
Example 3: python for data science
print "Hello, Python!"