Title: Implement decision_path in scikit.js · Issue #262 · javascriptdata/scikit.js · GitHub
Open Graph Title: Implement decision_path in scikit.js · Issue #262 · javascriptdata/scikit.js
X Title: Implement decision_path in scikit.js · Issue #262 · javascriptdata/scikit.js
Description: Is your feature request related to a problem? Please describe. This is to return the path that shows how the decision tree makes decision on a label from the root to the leaf. My guess is that changes are needed here. Kindly provide a de...
Open Graph Description: Is your feature request related to a problem? Please describe. This is to return the path that shows how the decision tree makes decision on a label from the root to the leaf. My guess is that chan...
X Description: Is your feature request related to a problem? Please describe. This is to return the path that shows how the decision tree makes decision on a label from the root to the leaf. My guess is that chan...
Opengraph URL: https://github.com/javascriptdata/scikit.js/issues/262
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Implement decision_path in scikit.js","articleBody":"**Is your feature request related to a problem? Please describe.**\nThis is to return the path that shows how the decision tree makes decision on a label from the root to the leaf. My guess is that changes are needed [here](https://github.com/javascriptdata/scikit.js/blob/main/src/tree/DecisionTree.ts). Kindly provide a description of how it can be implemented, even if it is outside your project map.\n\n**Describe the solution you'd like**\n\nThe Python implementation of [scikit-learn](https://github.com/scikit-learn/scikit-learn) has a `def decision_path(self, X, check_input=True)` in the [source code](https://github.com/scikit-learn/scikit-learn/blob/da08f3d99/sklearn/tree/_classes.py#L585)\n\nProvide suggestions on how it can be implemented in [scikit.js](https://github.com/javascriptdata/scikit.js).\n\n**Describe alternatives you've considered**\nA clear and concise description of any alternative solutions or features you've considered. This feature exist in [scikit-learn](https://github.com/scikit-learn/scikit-learn).\n\n","author":{"url":"https://github.com/kenluck2001","@type":"Person","name":"kenluck2001"},"datePublished":"2025-06-26T17:47:11.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/262/scikit.js/issues/262"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:3ba080c2-2b63-cacc-f23b-58fc26028d1a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E1A2:317C8C:54D210C:734E272:697327BB |
| html-safe-nonce | 54dceb492cacdc843820d1f1465fcce7d17ded1cde4f2053bddaf5e2bd3e7254 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMUEyOjMxN0M4Qzo1NEQyMTBDOjczNEUyNzI6Njk3MzI3QkIiLCJ2aXNpdG9yX2lkIjoiODE3MDE4Nzg1MjI0NzkzNDkwNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | dc79def4c4b87790122d292388a9f842d2b64b633ca2cff4d6cfd774fe599f83 |
| hovercard-subject-tag | issue:3179863965 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/javascriptdata/scikit.js/262/issue_layout |
| twitter:image | https://opengraph.githubassets.com/76490f5294665d39f97e9f57a32cf8ac4a7158f16c8c14d0fcdb1d8b92e49a92/javascriptdata/scikit.js/issues/262 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/76490f5294665d39f97e9f57a32cf8ac4a7158f16c8c14d0fcdb1d8b92e49a92/javascriptdata/scikit.js/issues/262 |
| og:image:alt | Is your feature request related to a problem? Please describe. This is to return the path that shows how the decision tree makes decision on a label from the root to the leaf. My guess is that chan... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kenluck2001 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 44ab3188c1dcfe3be0f9c3feca2e04e14fb79f120939ce2395e4f15ab96ec1d4 |
| turbo-cache-control | no-preview |
| go-import | github.com/javascriptdata/scikit.js git https://github.com/javascriptdata/scikit.js.git |
| octolytics-dimension-user_id | 62061637 |
| octolytics-dimension-user_login | javascriptdata |
| octolytics-dimension-repository_id | 411325859 |
| octolytics-dimension-repository_nwo | javascriptdata/scikit.js |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 411325859 |
| octolytics-dimension-repository_network_root_nwo | javascriptdata/scikit.js |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | a5e2b48bd1260476599758f5d253b5d24092ab84 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width