SML

Standard Machine Learning Language (SML) attempts to automate parts of machine learning using SQL like queries. The project was built with Python 3 libraries.

Example

The code snippet below reads in data, replaces missing values, splits the dataset into training and testing datasets performs simple linear regression, and saves the linear model parameters for later use.

from sml import execute

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

execute(query2, verbose=True)

Learn more about SML