Horje
tech with tim Code Example
tech with tim
import pandas as pd
import numpy as np
import sklearn
from sklearn import linear_model
from sklearn.utils import shuffle

data = pd.read_csv("student-mat.csv", sep=";")

data = data[["G1", "G2", "G3", "studytime", "failures", "absences"]]

predict = "G3"

X = np.array(data.drop([predict], 1))
y = np.array(data[predict])

x_train, x_test, y_train, y_test = sklearn.model_selection.train_test_split(X, y, test_size = 0.1)




Python

Related
Get text without inner tags text in selenium Code Example Get text without inner tags text in selenium Code Example
python multiprocessing queu empty error Code Example python multiprocessing queu empty error Code Example
.lstrip() Code Example .lstrip() Code Example
import nifti to numpy Code Example import nifti to numpy Code Example
fetch data from excel in pYTHON Code Example fetch data from excel in pYTHON Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8