Skip to content

Instantly share code, notes, and snippets.

@mapmeld
Created December 16, 2021 17:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mapmeld/1312d07f56ca5175a369c8e13975ec6b to your computer and use it in GitHub Desktop.
Save mapmeld/1312d07f56ca5175a369c8e13975ec6b to your computer and use it in GitHub Desktop.
How to write an ML example
# All I'm looking for on an ML example:
# ! pip install name_of_library
from name_of_library import model, other_stuff
tdata = load_data_from_file() # not a built-in datasets source where I'd need to write python to add data
tdata.apply(changes) # whose dataset is so perfect we don't edit it
model.train(tdata, **explained_params)
real_output = model.predict(real_input)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment