Skip to content

Instantly share code, notes, and snippets.

@yingjd
Created September 7, 2017 20:33
Show Gist options
  • Save yingjd/dcdd8e635d794957e0fbb595a933419f to your computer and use it in GitHub Desktop.
Save yingjd/dcdd8e635d794957e0fbb595a933419f to your computer and use it in GitHub Desktop.
XKmeansI

README is empty

d1 d2
2.3 6.6
7.3 9.9
5.5 7.8
6 4.2
6.7 0.4
5 2.2
2.6 2.8
4.7 5
1.4 7.4
1.4 1.1
4.6 6.5
5 0.5
2.9 4.2
3 5.4
0.5 3.9
5.1 3.5
6 5.5
0.5 3.7
3.9 0
6.2 6
3.9 1.8
0.8 1.8
0.9 2.2
3.5 3.1
7.5 1.8
4.8 4.8
1.8 4
2.7 2.2
1.2 3
0.6 6.3
{
"name": "XKmeansI ",
"state": "active",
"created": "2017-09-07T20:33:01.656Z",
"sources": [
{}
],
"profiles": {
"dataexplorer": "0.9"
},
"scripts": [
{
"id": "main.js",
"path": "main.js"
}
],
"views": [
{
"id": "grid",
"label": "Grid",
"type": "SlickGrid",
"state": {
"gridOptions": {
"editable": true,
"enabledAddRow": true,
"enabledDelRow": true,
"enableReOrderRow": true,
"autoEdit": false,
"enableCellNavigation": true
}
}
},
{
"id": "graph",
"label": "Graph",
"type": "Graph"
},
{
"id": "map",
"label": "Map",
"type": "Map"
}
],
"id": "dataexplorer-488384",
"resources": [
{
"backend": "csv",
"id": "XKmeansI ",
"filename": "XKmeansI .csv",
"path": "current.csv",
"schema": {
"fields": [
{
"id": "d1",
"label": "d1",
"type": "string",
"format": null,
"is_derived": false
},
{
"id": "d2",
"label": "d2",
"type": "string",
"format": null,
"is_derived": false
}
]
}
},
{
"backend": "csv",
"id": "XKmeansI -original",
"filename": "XKmeansI .csv",
"path": "original.csv",
"schema": {
"fields": [
{
"id": "d1",
"label": "d1",
"type": "string",
"format": null,
"is_derived": false
},
{
"id": "d2",
"label": "d2",
"type": "string",
"format": null,
"is_derived": false
}
]
}
}
]
}
loadDataset("current", function (error, dataset) {
// error will be null unless there is an error
// dataset is a Recline memory store (http://reclinejs.com//docs/src/backend.memory.html).
console.log(dataset);
});
2.3 6.6
7.3 9.9
5.5 7.8
6 4.2
6.7 0.4
5 2.2
2.6 2.8
4.7 5
1.4 7.4
1.4 1.1
4.6 6.5
5 0.5
2.9 4.2
3 5.4
0.5 3.9
5.1 3.5
6 5.5
0.5 3.7
3.9 0
6.2 6
3.9 1.8
0.8 1.8
0.9 2.2
3.5 3.1
7.5 1.8
4.8 4.8
1.8 4
2.7 2.2
1.2 3
0.6 6.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment