diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..cbce881 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,4 @@ +## neptune-xgboost 0.9.11 + +### Features +- Mechanism to prevent using legacy Experiments in new-API integrations ([#5](https://github.com/neptune-ai/neptune-xgboost/pull/5)) diff --git a/neptune_xgboost/impl/__init__.py b/neptune_xgboost/impl/__init__.py index bddae8e..146303a 100644 --- a/neptune_xgboost/impl/__init__.py +++ b/neptune_xgboost/impl/__init__.py @@ -30,13 +30,15 @@ from neptune_xgboost import __version__ try: - # neptune-client=0.9.0 package structure + # neptune-client=0.9.0+ package structure import neptune.new as neptune from neptune.new.internal.utils import verify_type + from neptune.new.internal.utils.compatibility import expect_not_an_experiment except ImportError: - # neptune-client=1.0.0 package structure + # neptune-client>=1.0.0 package structure import neptune from neptune.internal.utils import verify_type + from neptune.internal.utils.compatibility import expect_not_an_experiment INTEGRATION_VERSION_KEY = "source_code/integrations/neptune-xgboost" @@ -163,6 +165,7 @@ def __init__(self, log_tree=None, tree_figsize=30): + expect_not_an_experiment(run) verify_type("run", run, neptune.Run) verify_type("base_namespace", base_namespace, str) log_model is not None and verify_type("log_model", log_model, bool) diff --git a/setup.py b/setup.py index 7292384..7b7c524 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ def main(): all_deps += extras[group_name] extras['all'] = all_deps - base_libs = ['neptune-client>=0.9.8', 'xgboost>=1.3.0', 'matplotlib', 'graphviz'] + base_libs = ['neptune-client>=0.10.0', 'xgboost>=1.3.0', 'matplotlib', 'graphviz'] version = None if os.path.exists('PKG-INFO'):