File tree 1 file changed +17
-5
lines changed
1 file changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -551,16 +551,18 @@ define([
551
551
break ;
552
552
case 'Clustering' :
553
553
infos = {
554
- // 'Size of clusters': {
555
- // name: 'Size of clusters',
556
- // code: "print(f'Size of clusters: {np.bincount(pred)}')", // FIXME: model.cluster_centers_ / use model info or hide it
557
- // options: []
558
- // }
554
+ 'get_params' : {
555
+ ...defaultInfos [ 'get_params' ]
556
+ }
559
557
}
560
558
561
559
if ( modelType == 'KMeans' ) {
562
560
infos = {
563
561
...infos ,
562
+ 'score' : {
563
+ ...defaultInfos [ 'score' ] ,
564
+ description : 'Return the mean accuracy on the given test data and labels.'
565
+ } ,
564
566
'cluster_centers_' : {
565
567
name : 'cluster_centers' ,
566
568
label : 'Cluster centers' ,
@@ -587,6 +589,16 @@ define([
587
589
}
588
590
}
589
591
}
592
+
593
+ if ( modelType == 'GaussianMixture' ) {
594
+ infos = {
595
+ ...infos ,
596
+ 'score' : {
597
+ ...defaultInfos [ 'score' ] ,
598
+ description : 'Compute the per-sample average log-likelihood of the given data X.'
599
+ }
600
+ }
601
+ }
590
602
break ;
591
603
case 'Dimension Reduction' :
592
604
if ( modelType == 'LDA' ) {
You can’t perform that action at this time.
0 commit comments