pastebin

Paste Search Dynamic
Recent pastes
numpy array
  1. import pandas as pd
  2. import numpy as np
  3. from sklearn import linear_model
  4. def myfit_model(x,y):
  5.     numpy_array=np.array([[2,7],[3,11],[4,14],[6,21],[7,23],[8,24]])
  6.     for i in range (len(x)):
  7.      s=s+x[i]*y[i]
  8.      print(s)
Parsed in 0.003 seconds