Skip to content

Releases: cumbof/hdlib

hdlib v2.0.0

23 Sep 16:13

Choose a tag to compare

hdlib v2.0.0

New features:

  • The Vector class is now in hdlib.vector;
  • hdlib.model.MLModel is now hdlib.model.classification;
  • hdlib.graph.Graph is now hdlib.model.graph;
  • The hdlib.parser module has been suppressed and its functions have been moved to examples/chopin2/chopin2.py;
  • New hdlib.model.graph.GraphModel._error_rate and hdlib.model.graph.GraphModel._predict static methods for the estimation of the model error rate and the evaluation of a graph model in multiprocessing;
  • New hdlib.model.regression.RegressionModel and hdlib.model.clustering.ClusteringModel classes 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_mitigation does not take into account for false positives;
  • hdlib.model.graph.GraphModel.error_rate and hdlib.model.graph.GraphModel.predict now check whether an edge exist using weight-specific thresholds.

hdlib v0.1.20

21 May 19:56

Choose a tag to compare

hdlib v0.1.20

Fix:

  • Replace numpy.NINF with -numpy.inf as a change introduced in Numpy 2.0.

hdlib v0.1.19

30 Apr 01:15

Choose a tag to compare

hdlib v0.1.19

Fix:

  • Replace numpy.Inf with numpy.inf as a change introduced in Numpy 2.0;
  • hdlib.graph and the corresponding unittest are now working properly.

hdlib v0.1.18

16 Aug 16:38

Choose a tag to compare

hdlib v0.1.18

Add:

  • The space dictionary as part of a Space object is now an OrderedDict, making Space objects iterable over their set of vectors;
  • Python examples under the examples folder are now available as part of the hdlib package.

Fix:

  • Fix dumping and loading Vector and Space objects to and from pickle files;
  • space.Space.bulk_insert function now checks whether the names of the input vectors are instances of bool, int, float, str, and None before creating and inserting vectors into the space;
  • Distance thresholds in space.Space.find and space.Space.find_all are now set to numpy.Inf by default.

hdlib v0.1.17

05 Aug 22:31

Choose a tag to compare

hdlib v0.1.17

Add:

  • Add the subtraction operator to the arithmetic module;
  • Add __sub__ to space.Vector that makes use of arithmetic.subtraction to element-wise subtract two Vector objects;
  • Add space.Vector.subtraction to element-wise subtract a vector from a Vector object inplace;
  • Add graph.Graph to build vector-symbolic representations of directed and undirected, weighted and unweighted graphs;
  • Extend test/test.py with new unit tests.

hdlib v0.1.16

20 Feb 22:43

Choose a tag to compare

hdlib v0.1.16

Add:

  • Add __add__ and __mul__ to space.Vector;
  • model.MLModel.predict now returns the model error rate.

Fix:

  • model.Model is now model.MLModel;
  • parser.kfolds_split has been deprecated and removed;
  • model.MLModel.cross_val_predict now uses sklearn.model_selection.StratifiedKFold for 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

09 Sep 19:42

Choose a tag to compare

hdlib v0.1.15

Add:

Fix:

  • space.Space.bulk_insert has been refactored to make use of space.Space.insert;
  • parser.load_dataset now throws a ValueError in case of non-numerical datasets;
  • Add missing import os in space.Model.

hdlib v0.1.14

27 Jul 01:27

Choose a tag to compare

hdlib v0.1.14

Fix:

  • model.Model.fit now correctly generates both bipolar and binary level vectors;
  • space.Vector.dist automatically converts the cosine similarity into a distance measure;
  • model.Model.predict and model.Model.error_rate are now compatible with all the supported distance metrics (euclidean, hamming, and cosine).

hdlib v0.1.13

17 Jul 20:42

Choose a tag to compare

hdlib v0.1.13

Fix:

  • Fix the retraining process in model.Model.predict.

hdlib v0.1.12

16 Jul 22:09

Choose a tag to compare

hdlib v0.1.12

Add:

  • examples/chopin2.py now 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.Model class functions now raise different exceptions based on multiple checks on the input parameters.