Skip to content

Commit 5ed941f

Browse files
Fix version package doc
1 parent 4491aad commit 5ed941f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/check-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
run: |
1919
sudo apt install pandoc
2020
python -m pip install --upgrade pip
21-
pip install jinja2==3.0.3 sphinx numpydoc nbsphinx sphinx_gallery sphinx_rtd_theme ipython
21+
pip install jinja2==3.0.3 sphinx==4.4.0 numpydoc==1.2 nbsphinx==0.8.8 sphinx_gallery==0.10.1 sphinx_rtd_theme==1.0.0 ipython==8.0.1
2222
- name: Install adapt dependencies
2323
run: |
2424
python -m pip install --upgrade pip

.github/workflows/publish-doc-to-remote.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
run: |
1919
sudo apt install pandoc
2020
python -m pip install --upgrade pip
21-
pip install jinja2==3.0.3 sphinx numpydoc nbsphinx sphinx_gallery sphinx_rtd_theme ipython
21+
pip install jinja2==3.0.3 sphinx==4.4.0 numpydoc==1.2 nbsphinx==0.8.8 sphinx_gallery==0.10.1 sphinx_rtd_theme==1.0.0 ipython==8.0.1
2222
- name: Install adapt dependencies
2323
run: |
2424
python -m pip install --upgrade pip

adapt/instance_based/_kliep.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ def _fit_PG(self, Xs, Xt, PG, kernel_params):
374374

375375
# For original, no center selection
376376
if PG:
377-
centers, A, b = self.centers_selection(Xs, Xt, kernel_params)
377+
centers, A, b = self._centers_selection(Xs, Xt, kernel_params)
378378
else:
379379
index_centers = np.random.choice(
380380
len(Xt),
@@ -430,7 +430,7 @@ def _fit_PG(self, Xs, Xt, PG, kernel_params):
430430
return alphas[np.argmax(OBJs)], centers
431431

432432
def _fit_FW(self, Xs, Xt, kernel_params):
433-
centers, A, b = self.centers_selection(Xs, Xt, kernel_params)
433+
centers, A, b = self._centers_selection(Xs, Xt, kernel_params)
434434

435435
alpha = 1/(len(centers)*b)
436436
alpha = alpha.reshape(-1,1)
@@ -457,7 +457,7 @@ def _fit_FW(self, Xs, Xt, kernel_params):
457457
print("Alpha's optimization : iter %i -- Obj %.4f"%(k, objective))
458458
return alpha, centers
459459

460-
def centers_selection(self, Xs, Xt, kernel_params):
460+
def _centers_selection(self, Xs, Xt, kernel_params):
461461
A = np.empty((Xt.shape[0], 0))
462462
b = np.empty((0,))
463463
centers = np.empty((0, Xt.shape[1]))

0 commit comments

Comments
 (0)