Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upType hints #79
Type hints #79
Conversation
Added mypy.ini config file for mypy
|
@tellezsanti Thanks for the PR! I just started to review it. A couple of quick issues I noticed before looking into the code.
I will continue to review the changes to code and request change if needed. |
* working on refactoring inheritance * update base * update base * cleaned up base update * turned on sync_params in init
|
@tellezsanti I made some (big) changes following your works (see updated PR description). If you have no problem, I'm gonna merge. |
* Added type hints to conf.py Added mypy.ini config file for mypy * type hints * type hints * mypy check * aggragtor fix * type hints * corrected type hints * clean up * clean up * undo unnecessary typing * Refactor inheritance structure (#83) * working on refactoring inheritance * update base * update base * cleaned up base update * turned on sync_params in init * deleted old base archive * removed Literal * a lot more work on typing * fixed type around pipe * more cleaning up * fixed all type hints in metrics * fixed a type * clean up * use set_params * comment out non-trainable multivariate detector * removed unnecessary lines * omit @Property and @overload * fixed type * allowed empty steps in pipenet * omit plot_flowchart in coverage * some more cleaning up * removed unnecessary * hide sub-modules to private * some docstring fix * a lot of cleaning work on docstrings * fixed a typo * loose callable type * added mypy to CI/CD * fixed docstring * updated version number * updated changelog Co-authored-by: tailaiw <tailai.wen@arundo.com> Co-authored-by: tailaiw <29800495+tailaiw@users.noreply.github.com>
In this PR
Added type hints, and added type checking in CI/CD test
Refactored the inheritance structure
We made all second-order sub-modules private and user now can only import from first-order modules, i.e.
Improved docstrings and API documentation
Fixed minor bugs and typos
Turned some parameters in some models required
windowinadtk.detector.LevelShiftADwindowinadtk.detector.VolatilityShiftADwindowinadtk.transformer.RollingAggregatewindowinadtk.transformer.DoubleRollingAggregatemodelinadtk.detector.MinClusterDetectormodelinadtk.detector.OutlierDetectortargetandregressorinadtk.detector.RegressionADtargetandregressorinadtk.transformer.RegressionResidualaggregate_funcinadtk.aggregator.CustomizedAggregatordetect_funcinadtk.detector.CustomizedDetector1Ddetect_funcinadtk.detector.CustomizedDetectorHDtransform_funcinadtk.transformer.CustomizedTransformer1Dtransform_funcinadtk.detector.CustomizedTransformer1Dstepsinadtk.pipe.Pipeline