Skip to content

Commit 1c48f93

Browse files
authored
Merge pull request #17 from oracle/2.6.x
Release version 2.6.8
2 parents 710b8fb + 3aa6231 commit 1c48f93

File tree

4 files changed

+25
-5
lines changed

4 files changed

+25
-5
lines changed

ads/ads_version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"version": "2.6.7"
2+
"version": "2.6.8"
33
}

ads/dataset/helper.py

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from typing import List, Union
1919
import fsspec
2020

21-
from pandas.io.common import _compression_to_extension
21+
# from pandas.io.common import _compression_to_extension
2222

2323
from numbers import Number
2424
from urllib.parse import urlparse
@@ -280,8 +280,19 @@ def _determine_protocol_type(self):
280280

281281
@staticmethod
282282
def _remove_compressions(filename: str):
283-
for compression in _compression_to_extension.keys():
284-
if filename.strip().endswith(_compression_to_extension[compression]):
283+
_compression_to_extension = [
284+
".gz",
285+
".bz2",
286+
".zip",
287+
".xz",
288+
".zst",
289+
".tar",
290+
".tar.gz",
291+
".tar.xz",
292+
".tar.bz2",
293+
]
294+
for compression in _compression_to_extension:
295+
if filename.strip().endswith(compression):
285296
return ElaboratedPath._remove_compressions(
286297
os.path.splitext(filename.rstrip("/*"))[0]
287298
)

ads/hpo/visualization/_parallel_coordinate.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,8 @@ def _target(t: "optuna.trial.FrozenTrial") -> float:
144144
segments = [np.column_stack([x, y]) for x, y in zip(xs, dims_obj_base)]
145145
lc = LineCollection(segments, cmap=cmap)
146146
lc.set_array(np.asarray([target(t) for t in trials] + [0]))
147-
axcb = fig.colorbar(lc, pad=0.1)
147+
axcb = fig.colorbar(lc, pad=0.1, ax=fig.gca())
148+
148149
axcb.set_label(target_name)
149150
plt.xticks(range(len(sorted_params) + 1), var_names, rotation=330)
150151

docs/source/release_notes.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,19 @@
22
Release Notes
33
=============
44

5+
2.6.8
6+
-----
7+
Release date: October 29, 2022
8+
9+
* Fixed a bug in ``ads.dataset.helper`` to support Python 3.8 and Python 3.9.
10+
11+
512
2.6.7
613
-----
714
Release date: October 27, 2022
815

916
* Fixed a bug in ``PyTorchModel``. The ``score.py`` failed when ``torch.Tensor`` was used as input data.
17+
* Fixed a bug in ``ads opctl conda publish`` command.
1018
* Added support for flexible shapes for Data Flow Jobs.
1119
* Loading a model from Model Catalog (``GenericModel.from_model_catalog()``) and Model Deployment (``GenericModel.from_model_deployment()``) no longer requires a model file name.
1220
* Switched from using ``cx_Oracle`` interface to the ``oracledb`` driver to connect to Oracle Databases.

0 commit comments

Comments
 (0)