2 Commits

Author SHA1 Message Date
Alexander Engelsberger
46ec7b07d7 build: bump version 1.0.0a4 → 1.0.0a5 2022-06-12 12:49:31 +02:00
Alexander Engelsberger
07dab5a5ca fix: save_hyperparameters ignore did not work 2022-06-12 12:48:58 +02:00
5 changed files with 8 additions and 9 deletions

View File

@@ -1,5 +1,5 @@
[bumpversion] [bumpversion]
current_version = 1.0.0a4 current_version = 1.0.0a5
commit = True commit = True
tag = True tag = True
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)((?P<release>[a-zA-Z0-9_.-]+))? parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)((?P<release>[a-zA-Z0-9_.-]+))?

View File

@@ -23,7 +23,7 @@ author = "Jensun Ravichandran"
# The full version, including alpha/beta/rc tags # The full version, including alpha/beta/rc tags
# #
release = "1.0.0-a4" release = "1.0.0-a5"
# -- General configuration --------------------------------------------------- # -- General configuration ---------------------------------------------------

View File

@@ -36,4 +36,4 @@ from .unsupervised import (
) )
from .vis import * from .vis import *
__version__ = "1.0.0-a4" __version__ = "1.0.0-a5"

View File

@@ -5,7 +5,7 @@ Network architecture for Component based Learning.
""" """
from __future__ import annotations from __future__ import annotations
from dataclasses import dataclass from dataclasses import asdict, dataclass
from typing import Any, Callable from typing import Any, Callable
import pytorch_lightning as pl import pytorch_lightning as pl
@@ -33,10 +33,9 @@ class BaseYArchitecture(pl.LightningModule):
del hparams["initialized_proto_shape"] del hparams["initialized_proto_shape"]
hparams = self.HyperParameters(**hparams) hparams = self.HyperParameters(**hparams)
else: else:
self.save_hyperparameters( hparam_dict = asdict(hparams)
hparams.__dict__, hparam_dict["component_initializer"] = None
ignore=["component_initializer"], self.save_hyperparameters(hparam_dict, )
)
super().__init__() super().__init__()

View File

@@ -55,7 +55,7 @@ ALL = CLI + DEV + DOCS + EXAMPLES + TESTS
setup( setup(
name=safe_name("prototorch_" + PLUGIN_NAME), name=safe_name("prototorch_" + PLUGIN_NAME),
version="1.0.0-a4", version="1.0.0-a5",
description="Pre-packaged prototype-based " description="Pre-packaged prototype-based "
"machine learning models using ProtoTorch and PyTorch-Lightning.", "machine learning models using ProtoTorch and PyTorch-Lightning.",
long_description=long_description, long_description=long_description,