feat: add enum ml/base/cluster/kmeans/algorithms#10796
feat: add enum ml/base/cluster/kmeans/algorithms#10796nakul-krishnakumar wants to merge 5 commits intostdlib-js:developfrom
ml/base/cluster/kmeans/algorithms#10796Conversation
Coverage Report
The above coverage report was generated for the changes in this PR. |
ml/cluster/base/kmeans/algorithmsml/base/cluster/kmeans/algorithms
b192cb0 to
18d467a
Compare
18d467a to
c269779
Compare
---
type: pre_commit_static_analysis_report
description: Results of running static analysis checks when committing changes.
report:
- task: lint_filenames
status: passed
- task: lint_editorconfig
status: passed
- task: lint_markdown
status: na
- task: lint_package_json
status: na
- task: lint_repl_help
status: na
- task: lint_javascript_src
status: na
- task: lint_javascript_cli
status: na
- task: lint_javascript_examples
status: na
- task: lint_javascript_tests
status: na
- task: lint_javascript_benchmarks
status: na
- task: lint_python
status: na
- task: lint_r
status: na
- task: lint_c_src
status: na
- task: lint_c_examples
status: na
- task: lint_c_benchmarks
status: na
- task: lint_c_tests_fixtures
status: na
- task: lint_shell
status: na
- task: lint_typescript_declarations
status: passed
- task: lint_typescript_tests
status: na
- task: lint_license_headers
status: passed
---
Co-authored-by: Nakul Krishnakumar <nakulkrishnakumar86@gmail.com> Signed-off-by: Nakul Krishnakumar <nakulkrishnakumar86@gmail.com>
---
type: pre_commit_static_analysis_report
description: Results of running static analysis checks when committing changes.
report:
- task: lint_filenames
status: passed
- task: lint_editorconfig
status: passed
- task: lint_markdown
status: passed
- task: lint_package_json
status: na
- task: lint_repl_help
status: na
- task: lint_javascript_src
status: passed
- task: lint_javascript_cli
status: na
- task: lint_javascript_examples
status: na
- task: lint_javascript_tests
status: passed
- task: lint_javascript_benchmarks
status: na
- task: lint_python
status: na
- task: lint_r
status: na
- task: lint_c_src
status: na
- task: lint_c_examples
status: na
- task: lint_c_benchmarks
status: na
- task: lint_c_tests_fixtures
status: na
- task: lint_shell
status: na
- task: lint_typescript_declarations
status: passed
- task: lint_typescript_tests
status: na
- task: lint_license_headers
status: passed
---
| var contains = require( '@stdlib/array/base/assert/contains' ).factory; | ||
| var algorithms = require( './../lib' ); | ||
|
|
||
| var isAlternative = contains( algorithms() ); |
There was a problem hiding this comment.
I believe you want isAlgorithm here and below.
| // TypeScript Version: 4.1 | ||
|
|
||
| /** | ||
| * Returns a list of clustering algorithms. |
There was a problem hiding this comment.
| * Returns a list of clustering algorithms. | |
| * Returns a list of k-means clustering algorithms. |
| @@ -0,0 +1,22 @@ | |||
|
|
|||
| {{alias}}() | |||
| Returns a list of kmeans clustering algorithms. | |||
There was a problem hiding this comment.
| Returns a list of kmeans clustering algorithms. | |
| Returns a list of k-means clustering algorithms. |
k-means should be hyphenated wherever it is used in prose.
| // MAIN // | ||
|
|
||
| /** | ||
| * Returns an object mapping supported KMeans clustering algorithms to integer values for purposes of C inter-operation. |
There was a problem hiding this comment.
| * Returns an object mapping supported KMeans clustering algorithms to integer values for purposes of C inter-operation. | |
| * Returns an object mapping supported k-means clustering algorithms to integer values for purposes of C inter-operation. |
Be consistent with spelling.
| 'use strict'; | ||
|
|
||
| /** | ||
| * Return a list of KMeans clustering algorithms. |
There was a problem hiding this comment.
| * Return a list of KMeans clustering algorithms. | |
| * Return a list of k-means clustering algorithms. |
| // MAIN // | ||
|
|
||
| /** | ||
| * Returns a list of KMeans clustering algorithms. |
There was a problem hiding this comment.
| * Returns a list of KMeans clustering algorithms. | |
| * Returns a list of k-means clustering algorithms. |
| /** | ||
| * Returns a list of KMeans clustering algorithms. | ||
| * | ||
| * @returns {StringArray} list of clustering algorithms |
There was a problem hiding this comment.
| * @returns {StringArray} list of clustering algorithms | |
| * @returns {Array<string>} list of clustering algorithms |
We're slowly moving away from using StringArray to indicate Array<string>.
| t.end(); | ||
| }); | ||
|
|
||
| tape( 'the function returns a list of kmeans clustering algorithms', function test( t ) { |
There was a problem hiding this comment.
| tape( 'the function returns a list of kmeans clustering algorithms', function test( t ) { | |
| tape( 'the function returns a list of k-means clustering algorithms', function test( t ) { |
| { | ||
| "name": "@stdlib/ml/base/cluster/kmeans/algorithms", | ||
| "version": "0.0.0", | ||
| "description": "KMeans clustering algorithms.", |
There was a problem hiding this comment.
| "description": "KMeans clustering algorithms.", | |
| "description": "k-means clustering algorithms.", |
|
|
||
| # Clustering Algorithms | ||
|
|
||
| > KMeans clustering algorithms. |
There was a problem hiding this comment.
| > KMeans clustering algorithms. | |
| > k-means clustering algorithms. |
|
|
||
| #### algorithms() | ||
|
|
||
| Returns a list of KMeans clustering algorithms. |
There was a problem hiding this comment.
| Returns a list of KMeans clustering algorithms. | |
| Returns a list of k-means clustering algorithms. |
There was a problem hiding this comment.
Applies here and everywhere else.
---
type: pre_commit_static_analysis_report
description: Results of running static analysis checks when committing changes.
report:
- task: lint_filenames
status: passed
- task: lint_editorconfig
status: passed
- task: lint_markdown
status: passed
- task: lint_package_json
status: passed
- task: lint_repl_help
status: passed
- task: lint_javascript_src
status: passed
- task: lint_javascript_cli
status: na
- task: lint_javascript_examples
status: passed
- task: lint_javascript_tests
status: passed
- task: lint_javascript_benchmarks
status: na
- task: lint_python
status: na
- task: lint_r
status: na
- task: lint_c_src
status: na
- task: lint_c_examples
status: na
- task: lint_c_benchmarks
status: na
- task: lint_c_tests_fixtures
status: na
- task: lint_shell
status: na
- task: lint_typescript_declarations
status: passed
- task: lint_typescript_tests
status: passed
- task: lint_license_headers
status: passed
---
Resolves None.
Description
This pull request:
ml/cluster/base/kmeans/algorithms.Related Issues
This pull request has the following related issues:
Questions
No.
Other
No.
Checklist
AI Assistance
If you answered "yes" above, how did you use AI assistance?
Disclosure
None.
@stdlib-js/reviewers