Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix test #48

Merged
merged 2 commits into from
May 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# TensorCross Change Log

## Version 2.0.0: May 20, 2024

- This will be the stable version for TF 2.13+ which is the first version that supports keras 3.0

## Version 1.0.0: October 29, 2023

- Some rework, updates docs and versioning. This will be the stable version for TF (Keras) 2.8+
Expand Down
2 changes: 1 addition & 1 deletion examples/example_grid_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def build_model(
learning_rate: float,
) -> Model:
"""Build the test model."""
x_input = Input(shape=1)
x_input = Input(shape=(1,))
y_pred = Dense(units=1)(x_input)
model = Model(inputs=[x_input], outputs=[y_pred])

Expand Down
2 changes: 1 addition & 1 deletion examples/example_grid_search_cv.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def build_model(
learning_rate: float,
) -> Model:
"""Build the test model."""
x_input = Input(shape=1)
x_input = Input(shape=(1,))
y_pred = Dense(units=1)(x_input)
model = Model(inputs=[x_input], outputs=[y_pred])

Expand Down
2 changes: 1 addition & 1 deletion examples/example_random_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def build_model(
learning_rate: float,
) -> Model:
"""Build the test model."""
x_input = Input(shape=1)
x_input = Input(shape=(1,))
y_pred = Dense(units=1)(x_input)
model = Model(inputs=[x_input], outputs=[y_pred])

Expand Down
2 changes: 1 addition & 1 deletion examples/example_random_search_cv.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def build_model(
learning_rate: float,
) -> Model:
"""Build the test model."""
x_input = Input(shape=1)
x_input = Input(shape=(1,))
y_pred = Dense(units=1)(x_input)
model = Model(inputs=[x_input], outputs=[y_pred])

Expand Down
8 changes: 7 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,13 @@
ISRELEASED = False

MIN_PYTHON_VERSION = "3.9"
INSTALL_REQUIRES = ["keras>=2.8", "numpy", "scipy", "scikit-learn>=1.0"]
INSTALL_REQUIRES = [
"tensorflow>=2.13",
"keras>=3.0",
"numpy",
"scipy",
"scikit-learn>=1.0",
]


PACKAGES = find_packages(include=["tensorcross", "tensorcross.*"])
Expand Down
2 changes: 1 addition & 1 deletion tensorcross/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.0.0"
__version__ = "2.0.0"
2 changes: 1 addition & 1 deletion tests/test_grid_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def build_model(
learning_rate: float,
) -> Model:
"""Build the test model."""
x_input = Input(shape=num_features)
x_input = Input(shape=(num_features,))
y_pred = Dense(units=num_targets)(x_input)
model = Model(inputs=[x_input], outputs=[y_pred])

Expand Down
2 changes: 1 addition & 1 deletion tests/test_grid_search_cv.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def build_model(
learning_rate: float,
) -> Model:
"""Build the test model."""
x_input = Input(shape=num_features)
x_input = Input(shape=(num_features,))
y_pred = Dense(units=num_targets)(x_input)
model = Model(inputs=[x_input], outputs=[y_pred])

Expand Down
2 changes: 1 addition & 1 deletion tests/test_random_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def build_model(
learning_rate: float,
) -> Model:
"""Build the test model."""
x_input = Input(shape=num_features)
x_input = Input(shape=(num_features,))
y_pred = Dense(units=num_targets)(x_input)
model = Model(inputs=[x_input], outputs=[y_pred])

Expand Down
2 changes: 1 addition & 1 deletion tests/test_random_search_cv.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def build_model(
learning_rate: float,
) -> Model:
"""Build the test model."""
x_input = Input(shape=num_features)
x_input = Input(shape=(num_features,))
y_pred = Dense(units=num_targets)(x_input)
model = Model(inputs=[x_input], outputs=[y_pred])

Expand Down
Loading