Skip to content

Different API for serialization #224

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 8, 2022
Merged

Different API for serialization #224

merged 3 commits into from
May 8, 2022

Conversation

dcrescim
Copy link
Collaborator

@dcrescim dcrescim commented May 8, 2022

Instead of having toJSON and fromJSON on every class, fromJSON should exist at the library level. Basically you should be able to call KMeans.toJSON() to get a string representation, but the library fromJSON would be able to ingest any JSON representation.

@netlify
Copy link

netlify bot commented May 8, 2022

Deploy Preview for scikitjs ready!

Name Link
🔨 Latest commit 260c134
🔍 Latest deploy log https://app.netlify.com/sites/scikitjs/deploys/6277ed1da49b9800087b828e
😎 Deploy Preview https://deploy-preview-224--scikitjs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@dcrescim dcrescim merged commit b1f646f into main May 8, 2022
@dcrescim dcrescim deleted the fix-serialization branch May 8, 2022 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant