Releases: cumbof/hdlib
Releases · cumbof/hdlib
hdlib v2.0.0
hdlib v2.0.0
New features:
- The
Vectorclass is now inhdlib.vector; hdlib.model.MLModelis nowhdlib.model.classification;hdlib.graph.Graphis nowhdlib.model.graph;- The
hdlib.parsermodule has been suppressed and its functions have been moved to examples/chopin2/chopin2.py; - New
hdlib.model.graph.GraphModel._error_rateandhdlib.model.graph.GraphModel._predictstatic methods for the estimation of the model error rate and the evaluation of a graph model in multiprocessing; - New
hdlib.model.regression.RegressionModelandhdlib.model.clustering.ClusteringModelclasses for building regression and clustering models respectively; - New examples about the classification of chemical structures and the classification of viral species via graph encoding.
Fixes:
hdlib.model.graph.GraphModel.error_mitigationdoes not take into account for false positives;hdlib.model.graph.GraphModel.error_rateandhdlib.model.graph.GraphModel.predictnow check whether an edge exist using weight-specific thresholds.
hdlib v0.1.20
hdlib v0.1.20
Fix:
- Replace
numpy.NINFwith-numpy.infas a change introduced in Numpy 2.0.
hdlib v0.1.19
hdlib v0.1.19
Fix:
- Replace
numpy.Infwithnumpy.infas a change introduced in Numpy 2.0; hdlib.graphand the corresponding unittest are now working properly.
hdlib v0.1.18
hdlib v0.1.18
Add:
- The space dictionary as part of a
Spaceobject is now anOrderedDict, makingSpaceobjects iterable over their set of vectors; - Python examples under the
examplesfolder are now available as part of thehdlibpackage.
Fix:
- Fix dumping and loading
VectorandSpaceobjects to and from pickle files; space.Space.bulk_insertfunction now checks whether the names of the input vectors are instances ofbool,int,float,str, andNonebefore creating and inserting vectors into the space;- Distance thresholds in
space.Space.findandspace.Space.find_allare now set tonumpy.Infby default.
hdlib v0.1.17
hdlib v0.1.17
Add:
- Add the
subtractionoperator to thearithmeticmodule; - Add
__sub__tospace.Vectorthat makes use ofarithmetic.subtractionto element-wise subtract two Vector objects; - Add
space.Vector.subtractionto element-wise subtract a vector from a Vector object inplace; - Add
graph.Graphto build vector-symbolic representations of directed and undirected, weighted and unweighted graphs; - Extend test/test.py with new unit tests.
hdlib v0.1.16
hdlib v0.1.16
Add:
- Add
__add__and__mul__tospace.Vector; model.MLModel.predictnow returns the model error rate.
Fix:
model.Modelis nowmodel.MLModel;parser.kfolds_splithas been deprecated and removed;model.MLModel.cross_val_predictnow usessklearn.model_selection.StratifiedKFoldfor the generation of balanced folds;- Fix the order of the test real labels before computing the model metrics in examples/chopin2.py.
hdlib v0.1.15
hdlib v0.1.15
Add:
- Add examples/chopin2_iris.sh as a test case for examples/chopin2.py;
- Add new unit tests to test/test.py.
Fix:
space.Space.bulk_inserthas been refactored to make use ofspace.Space.insert;parser.load_datasetnow throws aValueErrorin case of non-numerical datasets;- Add missing
import osinspace.Model.
hdlib v0.1.14
hdlib v0.1.14
Fix:
model.Model.fitnow correctly generates both bipolar and binary level vectors;space.Vector.distautomatically converts the cosine similarity into a distance measure;model.Model.predictandmodel.Model.error_rateare now compatible with all the supported distance metrics (euclidean, hamming, and cosine).
hdlib v0.1.13
hdlib v0.1.13
Fix:
- Fix the retraining process in
model.Model.predict.
hdlib v0.1.12
hdlib v0.1.12
Add:
examples/chopin2.pynow reports the Accuracy, F1, Precision, Recall, and the Matthews correlation coefficient for each of the folds in addition to the average of these scores as evaluation metrics of the hyperdimensional computing models;model.Modelclass functions now raise different exceptions based on multiple checks on the input parameters.