Build a machine learning pipeline to train a model on the Titanic dataset.
requirements.txt
file
under the demo_project/
folder.
⌘ + S
.
+ Scratchpad
button. Then run the
following command:
mage-ai_server_run_6f8d367ac405
.
Then run this command to install Python packages in the
demo_project/requirements.txt
file:
File > New pipeline
. Then, click the name of the
pipeline next to the green dot to rename it to titanic survivors
.
+ Scratchpad
button to add a block.
Paste the following sample code in the block:
Play button
on the right side of the block to run the code.
Alternatively, you can use the following keyboard shortcuts to execute code in
the block:
+ Data loader
button, select Python
, then click the template
called API
.load dataset
.load_data_from_api
, set the url
variable to:
https://raw.githubusercontent.com/datasciencedojo/datasets/master/titanic.csv
.⌘ + Enter
, Control + Enter
, or Shift + Enter
.+ Transformer
button, select Python
, then click
Generic (no template)
.extract and impute numbers
.+ Data exporter
button, select
Python
, then click Generic (no template)
.train model
.