File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 12
12
* limitations under the License.
13
13
* ==========================================================================
14
14
*/
15
- export { KNeighborsRegressor } from './neighbors/KNeighborsRegressor'
16
- export { KNeighborsClassifier } from './neighbors/KNeighborsClassifier'
17
- export { makeRegression , makeLowRankMatrix } from './datasets/makeRegression'
15
+
18
16
export {
19
17
LinearRegression ,
20
18
LinearRegressionParams
@@ -71,6 +69,9 @@ export {
71
69
VotingClassifier ,
72
70
VotingClassifierParams
73
71
} from './ensemble/VotingClassifier'
72
+ export { KNeighborsRegressor } from './neighbors/KNeighborsRegressor'
73
+ export { KNeighborsClassifier } from './neighbors/KNeighborsClassifier'
74
+
74
75
export { LinearSVC , LinearSVCParams } from './svm/LinearSVC'
75
76
export { LinearSVR , LinearSVRParams } from './svm/LinearSVR'
76
77
@@ -87,4 +88,6 @@ export {
87
88
} from './tree/DecisionTree'
88
89
export { trainTestSplit } from './model_selection/trainTestSplit'
89
90
export { KFold } from './model_selection/KFold'
91
+ export { crossValScore } from './model_selection/crossValScore'
92
+ export { makeRegression , makeLowRankMatrix } from './datasets/makeRegression'
90
93
export { setBackend , getBackend } from './tf-singleton'
Original file line number Diff line number Diff line change 13
13
* ==========================================================================
14
14
*/
15
15
16
- import { KNeighborsRegressor , setBackend } from '../index'
16
+ import { KNeighborsRegressor , setBackend , KFold } from '../index'
17
+ import { crossValScore } from '../model_selection/crossValScore'
17
18
import { KNeighborsParams } from './KNeighborsBase'
18
19
import { dataUrls } from '../datasets/datasets'
19
20
import { arrayEqual } from '../utils'
20
- import { crossValScore } from '../model_selection/crossValScore'
21
- import { KFold } from '../model_selection/KFold'
22
21
import { negMeanSquaredError } from '../model_selection/scorers'
23
22
import '../jestTensorMatchers'
24
23
import * as dfd from 'danfojs-node'
@@ -45,7 +44,7 @@ function testWithDataset(
45
44
const X = Xy . slice ( [ 0 , 0 ] , [ nSamples , nFeatures ] )
46
45
const y = Xy . slice ( [ 0 , nFeatures ] ) . reshape ( [ nSamples ] ) as Tensor1D
47
46
48
- const scores = await crossValScore (
47
+ const scores = await ( crossValScore as any ) (
49
48
new KNeighborsRegressor ( params ) ,
50
49
X ,
51
50
y ,
You can’t perform that action at this time.
0 commit comments