|
126 | 126 | }
|
127 | 127 | ],
|
128 | 128 | "source": [
|
129 |
| - "hmeqdf = pd.read_csv(\"./Data/hmeq.csv\")\n", |
130 |
| - "hmeqct = conn.read_csv(\"./Data/hmeq.csv\", casout=dict(name='hmeqct', replace=True))" |
| 129 | + "hmeqdf = pd.read_csv(\"./data/hmeq.csv\")\n", |
| 130 | + "hmeqct = conn.read_csv(\"./data/hmeq.csv\", casout=dict(name='hmeqct', replace=True))" |
131 | 131 | ]
|
132 | 132 | },
|
133 | 133 | {
|
|
6867 | 6867 | " # Write ROC amd Lift Statistics JSON\n",
|
6868 | 6868 | " JSONFiles.generateROCLiftStat(target, 1, conn, trainData=scored_data, jPath=output_path)\n",
|
6869 | 6869 | " \n",
|
6870 |
| - " # Pushing Astore into Model Manager\n", |
6871 |
| - " with sess:\n", |
6872 |
| - " register_model(feature_astore, feature_name, project=project_name, force=True, version='latest')\n", |
6873 |
| - " register_model(model_astore, model_name, project=project_name, force=True, version='latest') \n", |
6874 |
| - " \n", |
6875 |
| - " # Pushing content files into Model Manager\n", |
6876 |
| - " fitstat_file = output_path / 'dmcas_fitstat.json'\n", |
6877 |
| - " lift_file = output_path / 'dmcas_lift.json'\n", |
6878 |
| - " roc_file = output_path / 'dmcas_roc.json'\n", |
| 6870 | + " model_content = [output_path / f for f in ('dmcas_fitstat.json', 'dmcas_lift.json', 'dmcas_roc.json')]\n", |
| 6871 | + " model_content = {f.name: f for f in model_content}\n", |
6879 | 6872 | "\n",
|
6880 |
| - " # Push Files into Model Manager\n", |
6881 |
| - " with sess, open(fitstat_file,'r') as upload_File: \n", |
6882 |
| - " modelRepo.add_model_content(model_name, upload_File, \"dmcas_fitstat.json\")\n", |
6883 |
| - " # Push Files into Model Manager\n", |
6884 |
| - " with sess, open(lift_file,'r') as upload_File: \n", |
6885 |
| - " modelRepo.add_model_content(model_name, upload_File, \"dmcas_lift.json\")\n", |
6886 |
| - " # Push Files into Model Manager\n", |
6887 |
| - " with sess, open(roc_file,'r') as upload_File: \n", |
6888 |
| - " modelRepo.add_model_content(model_name, upload_File, \"dmcas_roc.json\")" |
| 6873 | + " # Pushing Astore into Model Manager\n", |
| 6874 | + " register_model(feature_astore, feature_name, project=project_name, force=True, version='latest')\n", |
| 6875 | + " register_model(model_astore, model_name, project=project_name, force=True, version='latest', files=model_content) " |
6889 | 6876 | ]
|
6890 | 6877 | },
|
6891 | 6878 | {
|
|
0 commit comments