FeatureEnVi: Visual Analytics for Feature Engineering Using Stepwise Selection and Semi-Automatic Extraction Approaches
https://doi.org/10.1109/TVCG.2022.3141040
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
404 B
12 lines
404 B
4 years ago
|
# first line: 447
|
||
|
@memory.cache
|
||
|
def create_global_function():
|
||
|
global estimator
|
||
|
def estimator(C, gamma):
|
||
|
# initialize model
|
||
|
model = SVC(C=C, gamma=gamma, degree=1, random_state=RANDOM_SEED)
|
||
|
# set in cross-validation
|
||
|
result = cross_validate(model, XData, yData, cv=crossValidation)
|
||
|
# result is mean of test_score
|
||
|
return np.mean(result['test_score'])
|