acfx 0.3.6.dev4__tar.gz → 0.3.7.dev0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {acfx-0.3.6.dev4 → acfx-0.3.7.dev0}/PKG-INFO +1 -1
- {acfx-0.3.6.dev4 → acfx-0.3.7.dev0}/acfx/evaluation/ccfs.py +3 -1
- {acfx-0.3.6.dev4 → acfx-0.3.7.dev0}/acfx.egg-info/PKG-INFO +1 -1
- {acfx-0.3.6.dev4 → acfx-0.3.7.dev0}/pyproject.toml +1 -1
- {acfx-0.3.6.dev4 → acfx-0.3.7.dev0}/LICENSE +0 -0
- {acfx-0.3.6.dev4 → acfx-0.3.7.dev0}/acfx/ACFX.py +0 -0
- {acfx-0.3.6.dev4 → acfx-0.3.7.dev0}/acfx/AcfxCustom.py +0 -0
- {acfx-0.3.6.dev4 → acfx-0.3.7.dev0}/acfx/AcfxEBM.py +0 -0
- {acfx-0.3.6.dev4 → acfx-0.3.7.dev0}/acfx/AcfxLinear.py +0 -0
- {acfx-0.3.6.dev4 → acfx-0.3.7.dev0}/acfx/RandomSearchCounterOptimizer.py +0 -0
- {acfx-0.3.6.dev4 → acfx-0.3.7.dev0}/acfx/__init__.py +0 -0
- {acfx-0.3.6.dev4 → acfx-0.3.7.dev0}/acfx/abstract/ModelBasedCounterOptimizer.py +0 -0
- {acfx-0.3.6.dev4 → acfx-0.3.7.dev0}/acfx/abstract/OptimizerType.py +0 -0
- {acfx-0.3.6.dev4 → acfx-0.3.7.dev0}/acfx/abstract/__init__.py +0 -0
- {acfx-0.3.6.dev4 → acfx-0.3.7.dev0}/acfx/evaluation/EBMCounterOptimizer.py +0 -0
- {acfx-0.3.6.dev4 → acfx-0.3.7.dev0}/acfx/evaluation/LogisticRegressionCounterOptimizer.py +0 -0
- {acfx-0.3.6.dev4 → acfx-0.3.7.dev0}/acfx/evaluation/__init__.py +0 -0
- {acfx-0.3.6.dev4 → acfx-0.3.7.dev0}/acfx/evaluation/bayesian_model.py +0 -0
- {acfx-0.3.6.dev4 → acfx-0.3.7.dev0}/acfx/evaluation/loss.py +0 -0
- {acfx-0.3.6.dev4 → acfx-0.3.7.dev0}/acfx/evaluation/multi_dataset_evaluation.py +0 -0
- {acfx-0.3.6.dev4 → acfx-0.3.7.dev0}/acfx/evaluation/utils.py +0 -0
- {acfx-0.3.6.dev4 → acfx-0.3.7.dev0}/acfx.egg-info/SOURCES.txt +0 -0
- {acfx-0.3.6.dev4 → acfx-0.3.7.dev0}/acfx.egg-info/dependency_links.txt +0 -0
- {acfx-0.3.6.dev4 → acfx-0.3.7.dev0}/acfx.egg-info/requires.txt +0 -0
- {acfx-0.3.6.dev4 → acfx-0.3.7.dev0}/acfx.egg-info/top_level.txt +0 -0
- {acfx-0.3.6.dev4 → acfx-0.3.7.dev0}/setup.cfg +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import random
|
|
2
|
+
import uuid
|
|
2
3
|
from typing import Sequence, Dict, Tuple, Optional, List
|
|
3
4
|
import traceback
|
|
4
5
|
import numpy as np
|
|
@@ -82,7 +83,8 @@ def __generate_single_cf(query_instance, desired_class, adjacency_matrix, causal
|
|
|
82
83
|
return -loss[0, 1]
|
|
83
84
|
|
|
84
85
|
# Initialize Optuna study
|
|
85
|
-
|
|
86
|
+
study_name = f"study_{uuid.uuid4().hex}"
|
|
87
|
+
study = optuna.create_study(direction='maximize', storage=None, study_name=study_name)
|
|
86
88
|
|
|
87
89
|
# Define seen_points set to track uniqueness of points
|
|
88
90
|
seen_points = set()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|