Open adadgio opened 6 years ago
Nice! feel free to add that example to the Normalization 101 article in the wiki (: is that piece yours? You should publish it as a package (:
Yup, well i'v never tried publishing npm packages. I'm not really good at that ! Besides should i publish it as ts
or plain nodejs
?
You could have the typescript src in a github repo, then have an npm script that builds the js files (ie npm run build
which uses tsc
or webpack + ts-loader
to build the dist files) and you just publish it using npm publish
. If you want I can help you set it up, just put that piece in a repo and I'll send a PR (: I would use a package like that
Sure ! Here is what i got up on git this morning.
https://github.com/adadgio/neural-data-normalizer
The readme probably needs a wording review, and the overall probably need tests...
dope (: that's pretty much all you need, you just needed to add a name/description for the package, I sent a PR to make them match the repo name/description: https://github.com/adadgio/neural-data-normalizer/pull/1
Now you just need to go to https://www.npmjs.com/ create an account, then go to you your local copy of that repo and run:
npm run build
npm login
... follow login instruccions
npm publish
And that's it (: your package will be published to the npm registry as neural-data-normalizer
v1.0.0 🎉
This is not an issue.
Since data normalization is probably the biggest challenge for beginners (such as myself), i'd like to submit a code to the community (to be integrated int the Normalization 101 wiki if appropriate).
The class (sorry, this is typescript !!) converts any training input data into its bits representation suitable for this great library.
Ths gist: https://gist.github.com/adadgio/ce54cba2d3f9b953924aa3be497259bb
Usage:
And the console logs:
Just hoping to contribute here.