Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit616ddb9

Browse files
author
minjk-bl
committed
Add option to SMOTE
1 parent7416969 commit616ddb9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎visualpython/data/m_ml/mlLibrary.js‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,12 @@ define([
175175
name:'SMOTE',
176176
install:'!pip install imblearn',
177177
import:'from imblearn.over_sampling import SMOTE',
178-
code:'SMOTE(${random_state}${k_neighbors}${etc})',
178+
code:'SMOTE(${random_state}${k_neighbors}${sampling_strategy}${etc})',
179179
returnType:'SMOTE',
180180
options:[
181181
{name:'random_state',component:['input_number'],placeholder:'123',usePair:true},
182-
{name:'k_neighbors',component:['input_number'],default:5,usePair:true}
182+
{name:'k_neighbors',component:['input_number'],default:5,usePair:true},
183+
{name:'sampling_strategy',component:['input'],placeholder:"'auto'",usePair:true}
183184
]
184185
},
185186
/** Data Preparation - Scaling */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp