Skip to content

Commit e25dffa

Browse files
author
minjk-bl
committed
Edit DataSet to remove load_boston as it's been deprecated
1 parent ae43dd8 commit e25dffa

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

visualpython/data/m_ml/mlLibrary.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ define([
2121
*/
2222
var ML_LIBRARIES = {
2323
/** Data Sets */
24-
'load_boston': {
25-
name: 'load_boston',
26-
import: 'from sklearn.datasets import load_boston',
27-
code: 'load_boston()',
28-
options: [
24+
// 'load_boston': {
25+
// name: 'load_boston',
26+
// import: 'from sklearn.datasets import load_boston',
27+
// code: 'load_boston()',
28+
// options: [
2929

30-
]
31-
},
30+
// ]
31+
// },
3232
'load_iris': {
3333
name: 'load_iris',
3434
import: 'from sklearn.datasets import load_iris',

visualpython/js/m_ml/DataSets.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ define([
3333
this.config.checkModules = ['pd'];
3434

3535
this.state = {
36-
loadType: 'load_boston',
36+
loadType: 'load_iris',
3737
userOption: '',
3838
allocateTo: 'ldata',
3939
...this.state
@@ -42,7 +42,8 @@ define([
4242
this.mlConfig = ML_LIBRARIES;
4343
this.loadTypeList = {
4444
'Load Data': [
45-
'load_boston', 'load_iris', 'load_diabetes', 'load_digits', 'load_linnerud', 'load_wine', 'load_breast_cancer'
45+
// 'load_boston', // `load_boston` has been removed from scikit-learn since version 1.2.
46+
'load_iris', 'load_diabetes', 'load_digits', 'load_linnerud', 'load_wine', 'load_breast_cancer'
4647
],
4748
'Create Data': [
4849
'make_classification', 'make_blobs', 'make_circles', 'make_moons'

0 commit comments

Comments
 (0)