Skip to content

Commit

Permalink
fix models json
Browse files Browse the repository at this point in the history
  • Loading branch information
yofreke committed Sep 12, 2016
1 parent cd36b71 commit f87ddc7
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 3,834 deletions.
23 changes: 23 additions & 0 deletions generateModelJsons.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
var fs = require('fs')
var path = require('path')

var modelsPath = path.resolve(__dirname, 'models')

var files = fs.readdirSync(modelsPath).filter(function (file) {
return path.extname(file) === '.js';
}).map(function (file) {
return path.join(modelsPath, file)
})

console.log('Found', files)

files.forEach(function (fpath) {
var contents = fs.readFileSync(fpath, 'utf8');
eval(contents);
fs.writeFileSync(
fpath + 'on',
JSON.stringify(pModel)
)
})

console.log('Done')
675 changes: 1 addition & 674 deletions models/model_pca_10_mosse.json

Large diffs are not rendered by default.

614 changes: 1 addition & 613 deletions models/model_pca_10_svm.json

Large diffs are not rendered by default.

685 changes: 1 addition & 684 deletions models/model_pca_20_mosse.json

Large diffs are not rendered by default.

624 changes: 1 addition & 623 deletions models/model_pca_20_svm.json

Large diffs are not rendered by default.

616 changes: 1 addition & 615 deletions models/model_spca_10_svm.json

Large diffs are not rendered by default.

626 changes: 1 addition & 625 deletions models/model_spca_20_svm.json

Large diffs are not rendered by default.

0 comments on commit f87ddc7

Please sign in to comment.