renamed function file to UQ_FS_fn.py and added new file to call this function
This commit is contained in:
parent
6f9e3b91a6
commit
9c07ad3ce8
2 changed files with 92 additions and 28 deletions
29
UQ_FS_fn_CALL.py
Normal file
29
UQ_FS_fn_CALL.py
Normal file
|
@ -0,0 +1,29 @@
|
|||
#!/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)
|
||||
##############################################################################
|
Loading…
Add table
Add a link
Reference in a new issue