-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #51 from SOCR/dev
Release v0.1.5-alpha.2 #SOCRFW-200
- Loading branch information
Showing
17 changed files
with
786 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
app/partials/analysis/tools/machineLearning/kMeans/main.jade
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
div(ng-controller="kMeansMainCtrl") | ||
h2 2D k-means Clustering | ||
p. | ||
k-means clustering aims to partition n observations into k clusters in which each observation belongs | ||
to the cluster with the nearest mean, serving as a prototype of the cluster. | ||
div(ng-show="showresults").kmeans-results | ||
p.lead <strong> Average accuracy: </strong> {{avgAccuracy}} | ||
div.table-responsive | ||
table.table.table-bordered.table-condensed | ||
tr | ||
th Label | ||
th Accuracy | ||
tr(ng-repeat="(label, acc) in accs") | ||
td {{label}} | ||
td {{acc.toFixed(2)}} | ||
app-kmeans |
31 changes: 31 additions & 0 deletions
31
app/partials/analysis/tools/machineLearning/kMeans/sidebar.jade
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
div(ng-controller="kMeansSidebarCtrl") | ||
form | ||
legend Parameters | ||
div.form-group | ||
label X column | ||
//- show data header column names | ||
select(ng-model="xCol", ng-options="col for col in cols").form-control | ||
div.form-group | ||
label Y column | ||
//- show data header column names | ||
select(ng-model="yCol", ng-options="col for col in cols").form-control | ||
div.checkbox | ||
label | ||
input(type="checkbox", ng-model="labelson") | ||
| Use labels column | ||
div.form-group | ||
fieldset(ng-disabled="!labelson") | ||
label Labels column | ||
//- show data header column names | ||
select(ng-model="labelCol", ng-options="col for col in cols").form-control | ||
div.form-group | ||
label k | ||
select(ng-model="k", ng-options="k for k in ks").form-control | ||
div.form-group | ||
label Distance | ||
select(ng-model="dist", ng-options="dist for dist in distances").form-control | ||
div.form-group | ||
label Initialization | ||
select(ng-model="initMethod", ng-options="init for init in inits").form-control | ||
button(type="submit", aria-label="Run k-Means", ng-click="run()", ng-disabled="kmeanson").btn.btn-primary Run | ||
span.glyphicon.glyphicon-refresh(aria-hidden="true", ng-class="running") |
File renamed without changes.
File renamed without changes.
Oops, something went wrong.