ML_AI_training/UQ_FS_fn_CALL.py

29 lines
No EOL
818 B
Python

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue May 24 08:11:05 2022
@author: tanu
"""
import fsgs from
fsgs(X,y,param_gridLd=param_grid_abc, blind_test_df = X_bts, estimator=AdaBoostClassifier(**rs), var_type = 'mixed')
##############################################################################
#========================================
# Write final output file
# https://stackoverflow.com/questions/19201290/how-to-save-a-dictionary-to-a-file
#========================================
#output final dict as a json
outFile = 'LR_FS.json'
with open(outFile, 'w') as f:
f.write(json.dumps(output_modelD,cls=NpEncoder))
# read json
file = 'LR_FS.json'
with open(file, 'r') as f:
data = json.load(f)
##############################################################################