scikit-learn / scikit-learn/scikit-learn
str categorical data : CategoricalNB needed classes_array to understand in which classes order are arrays for feature_log_prob_
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 67.3k
- Forks
- 27.4k
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 58
Description
1
great code for CategoricalNB thanks
we waited for long time
2
only
for CategoricalNB needed classes_array to understand in which classes order are arrays for feature_log_prob_ for target defined as str
for example : good and bad
or
green and red
may be needed Attribute classes_array
like for LogisticRegression
https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html
Attributes
classes_array, shape (n_classes, )
A list of class labels known to the classifier.
3
also can you add capability to send str format categorical data as it is
for now we use LabelEncoder to transform str categorical data to integers
thanks a lot in advance ...
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing CategoricalNB's public attributes and the LogisticRegression classes_ documentation referenced in the issue. Clarify whether the work covers exposing class-label order, accepting string-valued categorical data, or both, then identify the relevant estimator tests. Done should include agreed behavior for string labels and class ordering, with tests demonstrating both.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100