Skip to content

Commit ffec38c

Browse files
author
minjk-bl
committed
Add SMOTE model info
1 parent e46aa1e commit ffec38c

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

visualpython/html/m_ml/modelInfo.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
</div>
3939
<div class="vp-grid-border-box">
4040
<div class="vp-multilang vp-ins-select-title">Options</div>
41-
<div class="vp-ins-parameter-box vp-grid-col-95">
41+
<div class="vp-ins-parameter-box vp-grid-col-130">
4242

4343
</div>
4444
</div>

visualpython/js/m_ml/ModelInfo.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,19 @@ define([
514514
}
515515
}
516516
}
517+
if (modelType === 'SMOTE') {
518+
infos = {
519+
'get_feature_names_out': {
520+
name: 'get_feature_names_out',
521+
label: 'Get feature names',
522+
code: '${feature_names_allocate} = ${model}.get_feature_names_out()',
523+
description: 'Get output feature names for transformation.',
524+
options: [
525+
{ name: 'feature_names_allocate', label: 'Allocate to', component: ['input'], placeholder: 'New variable', value: 'features' }
526+
]
527+
}
528+
}
529+
}
517530
infos = {
518531
...infos,
519532
'get_params': defaultInfos['get_params']

0 commit comments

Comments
 (0)