Ejemplo n.º 1
0
import mlsql
from mlsql import execute

query = 'READ "data/iris.csv" SPLIT (train = .8, test = 0.2) CLASSIFY (predictors = [1,2,3,4], label = 5, algorithm = svm)'

execute(query)
Ejemplo n.º 2
0
import mlsql
from mlsql import execute

print("Chronic Kidney Disease Logistic Regression")
query = 'READ "data/chronic.csv" (separator = ",", header = 0) \
REPLACE ("?", "mode") SPLIT (train = .8, test = 0.2) CLASSIFY \
(predictors = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24],\
 label = 25, algorithm = logistic)'

execute(query, verbose=True)
Ejemplo n.º 3
0
import mlsql
from mlsql import execute

query = 'READ "data/auto.csv" (separator = "\s+", header = None)\
 REPLACE ("?", "mode") SPLIT (train = .8, test = .2, validation = .0)\
  REGRESS (predictors = [2,3,4,5,6,7,8], label = 1, algorithm = simple)'

execute(query, verbose=False)