Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
PyCaret authored Jul 14, 2020
1 parent 287d887 commit 73128cd
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ RUN pip install --trusted-host pypi.python.org -r requirements.txt

ENTRYPOINT ["python"]

CMD ["/app/app.py"]
CMD ["/app/app.py"]
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ inputs:
myInput:
description: "Classification"
required: true
default: "zeroinputs"
default: "target-variable"
outputs:
myOutput:
description: "Output from the action"
Expand Down
6 changes: 4 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@
data = pd.read_csv(dataset_path)
data.head()

target = ast.literal_eval(os.environ["INPUT_MYINPUT"])

from pycaret.classification import *
clf1 = setup(data, target = 'Purchase', session_id=123, silent=True, html=False, log_experiment=True, experiment_name='juice1')
clf1 = setup(data, target = target, session_id=123, silent=True, html=False, log_experiment=True, experiment_name='exp1')

c = compare_models()

save_model(c, 'model')

logs_juice1 = get_logs(save=True)
logs_exp1 = get_logs(save=True)
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pycaret-nightly==0.20
pycaret-nightly==0.24

0 comments on commit 73128cd

Please sign in to comment.