Skip to content

Commit 8926ccc

Browse files
authored
Merge pull request #8 from maxmekiska/development
fix: removed dead pandas imports, added tensorflow requirement
2 parents 84c711d + fa52045 commit 8926ccc

File tree

7 files changed

+15
-12
lines changed

7 files changed

+15
-12
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,9 @@ activation function type
8888
- removed internal hyperparameter tuning
8989
- removed encoder-decoder architectures
9090
- improved layer configuration via dictionary input
91-
- split data argument into target and feature numpy arrays
91+
- split data argument into target and feature numpy arrays
92+
93+
### 2.0.1
94+
95+
- bug: removed dead pandas imports
96+
- chore: added tensorflow as base requirement

imbrium/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "2.0.0"
1+
__version__ = "2.0.1"
22

33
from imbrium.predictors.multivarhybrid import HybridMulti
44
from imbrium.predictors.multivarpure import PureMulti

imbrium/blueprints/abstract_multivariate.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from abc import ABC, abstractmethod
22

33
from numpy import array
4-
from pandas import DataFrame
54

65

76
class MultiVariateMultiStep(ABC):
@@ -76,7 +75,7 @@ def show_performance(self):
7675
pass
7776

7877
@abstractmethod
79-
def predict(self, data: array) -> DataFrame:
78+
def predict(self, data: array) -> array:
8079
pass
8180

8281
@abstractmethod

imbrium/blueprints/abstract_univariate.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from abc import ABC, abstractmethod
22

33
from numpy import array
4-
from pandas import DataFrame
54

65

76
class UniVariateMultiStep(ABC):
@@ -76,7 +75,7 @@ def show_performance(self):
7675
pass
7776

7877
@abstractmethod
79-
def predict(self, data: array) -> DataFrame:
78+
def predict(self, data: array) -> array:
8079
pass
8180

8281
@abstractmethod

imbrium/utils/transformer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ def data_prep_uni(data: array) -> array:
1414

1515

1616
def data_prep_multi(target: array, features: array) -> array:
17-
"""Extract features and convert DataFrame to an array.
17+
"""Prepare target and feature numpy arrays for mulitvariate model intake.
1818
Parameters:
19-
data (array): DataFrame containing multi-feature data.
20-
features (list): All features that should be considered.
19+
target (array): Array containing multi-feature data.
20+
features (array): All features that should be considered.
2121
Returns:
2222
data (array): Array containing sequences of selected features.
2323
"""

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@
1313
long_description=long_description,
1414
long_description_content_type="text/markdown",
1515
name="imbrium",
16-
version="2.0.0",
16+
version="2.0.1",
1717
packages=find_packages(include=["imbrium", "imbrium.*"]),
1818
install_requires=[
1919
"setuptools >= 41.0.0",
20-
"keras-core==0.1.5",
20+
"keras-core >=0.1.5, <0.2.0",
21+
"tensorflow >=2.13.0, <2.14.0",
2122
],
2223
classifiers=[
2324
"Programming Language :: Python :: 3.8",

tox.ini

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ deps =
2323
pytest==7.2.0
2424
pytest-cov
2525
coverage
26-
tensorflow
2726
pandas
2827
commands =
2928
coverage run --source=imbrium -m pytest -vv

0 commit comments

Comments
 (0)