{"id":15043588,"url":"https://github.com/repetere/jsonstack-math","last_synced_at":"2026-02-07T05:01:15.979Z","repository":{"id":69163881,"uuid":"533814419","full_name":"repetere/jsonstack-math","owner":"repetere","description":"math, linear algebra, matrix and other helpers","archived":false,"fork":false,"pushed_at":"2025-05-20T12:56:11.000Z","size":5937,"stargazers_count":1,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-08T18:30:07.550Z","etag":null,"topics":["linear-algebra","machine-learning","matrix-factorization","tensorflow"],"latest_commit_sha":null,"homepage":"https://repetere.github.io/jsonstack-math/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/repetere.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2022-09-07T14:58:19.000Z","updated_at":"2025-02-24T15:23:45.000Z","dependencies_parsed_at":"2023-03-11T05:25:31.887Z","dependency_job_id":"7648ec6c-0fe7-474e-ab4a-e51d582c6fc1","html_url":"https://github.com/repetere/jsonstack-math","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"purl":"pkg:github/repetere/jsonstack-math","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/repetere%2Fjsonstack-math","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/repetere%2Fjsonstack-math/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/repetere%2Fjsonstack-math/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/repetere%2Fjsonstack-math/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/repetere","download_url":"https://codeload.github.com/repetere/jsonstack-math/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/repetere%2Fjsonstack-math/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29186742,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T03:35:06.566Z","status":"ssl_error","status_checked_at":"2026-02-07T03:34:57.604Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["linear-algebra","machine-learning","matrix-factorization","tensorflow"],"created_at":"2024-09-24T20:49:18.647Z","updated_at":"2026-02-07T05:01:15.858Z","avatar_url":"https://github.com/repetere.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jsonstack-math\nlinear algebra, math, matrix and other helpers\n\n# JSONSTACK Math\n [![Coverage Status](https://coveralls.io/repos/github/repetere/jsonstack-math/badge.svg?branch=main)](https://coveralls.io/github/repetere/jsonstack-math?branch=main) [![Release](https://github.com/repetere/jsonstack-math/actions/workflows/release.yml/badge.svg)](https://github.com/repetere/jsonstack-math/actions/workflows/release.yml)\n\n## Description\n\n**JSONSTACK Math** is a module that ...WIP.\n\n### Jump right in\n\n... is designed so software engineers and machine learning engineers can ...WIP.\n\n### Usage\n\nThe idea behind ... WIP.\n\n### What's included\n...WIP...\n - tbd\n - tbd\n## Installation\n\n```sh\n$ npm i @jsonstack/math\n```\n\n\u003clink id=\"viewx-style-style-0\" rel=\"stylesheet\" type=\"text/css\" href=\"https://unpkg.com/highlight.js@9.18.1/styles/darkula.css\"\u003e\n\n---\n### jsonstack-math Manual\n - [Getting Started](https://repetere.github.io/jsonstack-math/manual/getting-started/index.html)\n - Working With Data\n   - [Data Fetching](https://repetere.github.io/jsonstack-math/manual/data-fetching/index.html)\n   - [Feature Engineering](https://repetere.github.io/jsonstack-math/manual/feature-engineering/index.html)\n - Working With Models\n   - [Model Training](https://repetere.github.io/jsonstack-math/manual/model-training/index.html)\n   - [Model Evaluation](https://repetere.github.io/jsonstack-math/manual/model-evaluation/index.html)\n   - [Model Predictions](https://repetere.github.io/jsonstack-math/manual/model-predictions/index.html)\n   - [Saving and Loading Models](https://repetere.github.io/jsonstack-math/manual/saving-and-loading-models/index.html) \n - [Advanced Topics](https://repetere.github.io/jsonstack-math/manual/advanced-topics/index.html)\n   - [jsonstack-math \u0026 JML Spec](https://repetere.github.io/jsonstack-math/manual/spec/index.html)\n   - [Examples](https://repetere.github.io/jsonstack-math/manual/examples/index.html)\n   - [Full API Docs](https://repetere.github.io/jsonstack-math/)\n---\n\n### Basic Usage\n```typescript\nimport * as tf from '@tensorflow/tfjs-node';\nimport { getModel, setBackend, } from '@jsonstack/jsonstack-math';\n\n//set tensorflow\nsetBackend(tf);\n\n//Iris Dataset e.g from https://raw.githubusercontent.com/repetere/modelx-model/master/src/test/mock/data/iris_data.csv\nconst type = 'ai-classification';\nconst dataset = [\n  {\n    \"sepal_length_cm\": 5.1,\n    \"sepal_width_cm\": 3.5,\n    \"petal_length_cm\": 1.4,\n    \"petal_width_cm\": 0.2,\n    \"plant\": \"Iris-setosa\",\n  },\n//  ...\n  {\n    \"sepal_length_cm\": 7.0,\n    \"sepal_width_cm\": 3.2,\n    \"petal_length_cm\": 4.7,\n    \"petal_width_cm\": 1.4,\n    \"plant\": \"Iris-versicolor\",\n  },\n  // ...\n  {\n    \"sepal_length_cm\": 5.9,\n    \"sepal_width_cm\": 3.0,\n    \"petal_length_cm\": 5.1,\n    \"petal_width_cm\": 1.8,\n    \"plant\": \"virginica\",\n  }\n]\nconst inputs = ['sepal_length_cm','sepal_width_cm','petal_length_cm','petal_width_cm', ];\nconst outputs = [ 'plant',];\nconst on_progress = ({ completion_percentage, loss, epoch, status, logs, defaultLog, }) =\u003e { \n  console.log({ completion_percentage, loss, epoch, status, logs, defaultLog, });\n}\nconst IrisModel = await getModel({\n  type,\n  dataset,\n  inputs,\n  outputs,\n  on_progress,\n}); \nawait IrisModel.trainModel()\nconst predictions = await IrisModel.predictModel({ \n  prediction_inputs:[\n    { sepal_length_cm: 5.1, sepal_width_cm: 3.5, petal_length_cm: 1.4, petal_width_cm: 0.2, },\n    { sepal_length_cm: 5.9, sepal_width_cm: 3.0, petal_length_cm: 5.1, petal_width_cm: 1.8, },\n  ],\n}); // =\u003e [ { plant:'Iris-setosa' }, { plant:'Iris-virginica' }, ]\n\n```\n\n## Example ##\n\u003ciframe width=\"100%\" height=\"500\" src=\"https://jsfiddle.net/yawetse/4ph1vwes/21/embedded/result,js,html,css,resources/dark/\" allowfullscreen=\"allowfullscreen\" allowpaymentrequest frameborder=\"0\"\u003e\u003c/iframe\u003e\n\n### Development\n\nNote *Make sure you have typescript installed*\n\n```sh\n$ npm i -g typescript \n```\n\nFor generating documentation\n\n```sh\n$ npm run doc\n```\n\n### Notes\n\nCheck out [https://repetere.github.io/jsonstack-math/](https://repetere.github.io/jsonstack-math/) for the full jsonstack-math Documentation\n\n### Testing\n\n```sh\n$ npm test\n```\n\n### Contributing\n\nFork, write tests and create a pull request!\n\nLicense\n\n----\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frepetere%2Fjsonstack-math","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frepetere%2Fjsonstack-math","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frepetere%2Fjsonstack-math/lists"}