Skip to content

Commit

Permalink
Multi label base architecture (#507)
Browse files Browse the repository at this point in the history
* add : `MultiLabelCM` base.

* add : `__mlcm_assign_classes__` and `__mlcm_vector_handler__`.

* log : changes logged.

* pep8 : autopep8ed.

* replace : functions moved to `pycm_multilabel_cm.py`.

* update : `__mlcm_vector_filter__` added as a wraper.

* add : `MultiLabelCM` added to `__init__`.

* update : `MultiLabelCM` updated.

* update : base architecture completed.

* fix : removed extra `print`.

* change : `MultiLabelCM.__len__` changed to classes' length.

* fix : `MultiLabelCM.__str__` docstring added.

* add : `actual_vector_multihot` and `predict_vector_multihot`.

* fix : docstring fixed.

* fix : `MultiLabelCM` class docstring fixed.

* remove : extra import removed.

* fix : docstring fixed.

* add : `pycmIndexError` and `pycmNotWorkingError`.

* add : `classwise_cm` and `samplewise_cm` methods.

* test : tests added for `MultiLabelCM`.

* log : changes logged.

* add : new line added.

* rename : `S` -> `input_set` in `__set_to_multihot__`.

* edit : `__str__` updated.

* add : `pycmMultiLabelError` added and extra error classes removed.

* change : support for multi-hop input removed.

* test : tests added.

* fix : verified tests updated

* fix : multilabel tests updated

* fix : multilabel tests updated

* fix : an error message fixed to generlize the error condition.

* rename : `samplewise_cm` -> `get_cm_by_sample`.

* rename : `classwise_cm` -> `get_cm_by_class`.

* doc : multilabel document updated

* doc : README updated

* doc : minor edit in Document

* doc : CHANGELOG updated

* fix : docstring fixed.

* fix : meeting's comment applied.

* test : tests added.

* doc : multilabel document updated

* doc : README updated

* doc : minor bug in Document fixed

* fix : minor edit in multilabel tests

* doc : multilabel output added to README

* doc : Document input-error section updated

---------

Co-authored-by: sepandhaghighi <sepand.haghighi@yahoo.com>
  • Loading branch information
sadrasabouri and sepandhaghighi authored Jun 6, 2023
1 parent 342d1c3 commit 27c34dd
Show file tree
Hide file tree
Showing 10 changed files with 535 additions and 958 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,18 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]
### Added
- `pycmMultiLabelError` class
- `MultiLabelCM` class
- `get_cm_by_class` method
- `get_cm_by_sample` method
- `__mlcm_vector_handler__` function
- `__mlcm_assign_classes__` function
- `__mlcm_vectors_filter__` function
- `__set_to_multihot__` function
- `deprecated` function
### Changed
- Document modified
- `README.md` modified
- Example-4 modified
- Test system modified
- Python 3.5 support dropped
Expand Down
Loading

0 comments on commit 27c34dd

Please sign in to comment.