Skip to content

Commit 73128cd

Browse files
author
PyCaret
authored
Add files via upload
1 parent 287d887 commit 73128cd

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ RUN pip install --trusted-host pypi.python.org -r requirements.txt
1010

1111
ENTRYPOINT ["python"]
1212

13-
CMD ["/app/app.py"]
13+
CMD ["/app/app.py"]

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ inputs:
55
myInput:
66
description: "Classification"
77
required: true
8-
default: "zeroinputs"
8+
default: "target-variable"
99
outputs:
1010
myOutput:
1111
description: "Output from the action"

app.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@
55
data = pd.read_csv(dataset_path)
66
data.head()
77

8+
target = ast.literal_eval(os.environ["INPUT_MYINPUT"])
9+
810
from pycaret.classification import *
9-
clf1 = setup(data, target = 'Purchase', session_id=123, silent=True, html=False, log_experiment=True, experiment_name='juice1')
11+
clf1 = setup(data, target = target, session_id=123, silent=True, html=False, log_experiment=True, experiment_name='exp1')
1012

1113
c = compare_models()
1214

1315
save_model(c, 'model')
1416

15-
logs_juice1 = get_logs(save=True)
17+
logs_exp1 = get_logs(save=True)

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pycaret-nightly==0.20
1+
pycaret-nightly==0.24

0 commit comments

Comments
 (0)