Skip to content

Commit 9e54322

Browse files
Bug fix. Remove wrong imports in base model class (#67)
* Bug fix. Remove wrong imports in base model class * readme update for pypi
1 parent a25b9ea commit 9e54322

File tree

4 files changed

+4
-9
lines changed

4 files changed

+4
-9
lines changed

Diff for: .github/workflows/release.yml

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ jobs:
1414
- name: Build package
1515
run: pip install wheel && python setup.py sdist bdist_wheel && ls -l dist
1616
- name: Publish package to TestPyPI
17-
if: "github.event.release.prerelease"
1817
uses: pypa/gh-action-pypi-publish@master
1918
with:
2019
user: __token__

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ TileDB-ML can be installed:
100100

101101
pip install git+https://github.com/TileDB-Inc/TileDB-ML.git@master
102102

103-
- Soon from PyPi:
103+
- from PyPi:
104104

105105
[comment]: <> (TileDB-ML is available from either [PyPI]&#40;https://test.pypi.org/project/tiledb-ml/0.1.2.2/&#41; with ``pip``:)
106106

Diff for: setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = tiledb-ml
3-
version = 0.2.1
3+
version = 0.2.2
44
description = Package supports all machine learning functionality for TileDB Embedded and TileDB Cloud
55
author = TileDB, Inc.
66
author_email = [email protected]

Diff for: tiledb/ml/models/base.py

+2-6
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,9 @@
66
import json
77
import platform
88

9-
from typing import Optional, Union
9+
from typing import Optional
1010
from enum import Enum, unique
1111

12-
from torch.nn import Module
13-
from tensorflow.python.keras.models import Model
14-
from sklearn.base import BaseEstimator
15-
1612

1713
@unique
1814
class ModelFileProperties(Enum):
@@ -41,7 +37,7 @@ def __init__(
4137
uri: str,
4238
namespace: str = None,
4339
ctx: tiledb.Ctx = None,
44-
model: Union[Module, Model, BaseEstimator] = None,
40+
model=None,
4541
):
4642
"""
4743
Base class for saving machine learning models as TileDB arrays

0 commit comments

Comments
 (0)