Skip to content

Commit f362799

Browse files
author
PyCaret
authored
Add files via upload
1 parent 95a0188 commit f362799

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

action.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@ name: "PyCaret AutoML Git Action"
22
description: "pycaret.classification"
33
author: "Moez Ali"
44
inputs:
5-
myInput:
6-
description: "Classification"
5+
DATASET:
6+
description: "Dataset for Training"
77
required: true
8-
default: "target-variable"
8+
default: "juice"
9+
TARGET:
10+
description: "Target variable"
11+
required: true
12+
default: "Purchase"
913
outputs:
1014
myOutput:
1115
description: "Output from the action"

app.py

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
import os, ast
22
import pandas as pd
33

4-
dataset_path = "https://raw.githubusercontent.com/" + os.environ["GITHUB_REPOSITORY"] +"/master/dataset.csv"
4+
dataset = os.environ["INPUT_DATASET"]
5+
target = os.environ["INPUT_TARGET"]
6+
7+
dataset_path = "https://raw.githubusercontent.com/" + os.environ["GITHUB_REPOSITORY"] + "/master/" + os.environ["INPUT_DATASET"] + '.csv'
58
data = pd.read_csv(dataset_path)
69
data.head()
710

8-
target = os.environ["INPUT_MYINPUT"]
9-
1011
from pycaret.classification import *
11-
clf1 = setup(data, target = target, session_id=123, silent=True, html=False, log_experiment=True, experiment_name='exp1')
12+
clf1 = setup(data, target = target, session_id=123, silent=True, html=False, log_experiment=True, experiment_name='exp_github')
1213

1314
c = compare_models()
1415

1516
save_model(c, 'model')
1617

17-
logs_exp1 = get_logs(save=True)
18+
logs_exp_github = get_logs(save=True)

0 commit comments

Comments
 (0)