Comments (4)
Glad it worked.
The issue you describe most certainly relates to a documented tensorflow problem: tensorflow/tensorflow#35100.
Nightly TF build seems to have fixed it, so hoping that the next stable TF release will be able to sort it out.
Will ping here when either data generator solves the problem or TF team pushes a working update!
from ivis.
Hi - glad you're enjoying ivis!
We've been noticing some weird threading issues that relate to the latest tensorflow 2.1. @Szubie is working on a larger fix to address this via data generators.
Meanwhile, could you try downgrading tensorflow to version 1.15 and let us know if that solves your hanging thread issue? Since R wrapper for ivis installs it into a virtualenv, the steps to downgrade would be:
- From R REPL find out where your local virtual environments are stored:
> reticulate::virtualenv_root()
- Assuming that your venvs are in
~/.virtualenvs
, activate theivis
environment from command line:
$ source ~/.virtualenvs/ivis/bin/activate
- Finally, downgrade tensorflow to pip:
$ python -m pip install tensorflow==1.15
After this restart R and reload the ivis package.
from ivis.
@idroz thanks for the fix and clear instructions here. It's now working as expected -- I've run a few training iterations and don't see any ongoing weird behavior now.
I'm not sure if this is helpful for further diagnosis, but the extent of ongoing resource usage seemed correlated to the overall complexity of the fit() call -- increasing data size or increasing ntrees
/search_k
/n_epochs_without_progress
tended to boost the level of after-termination resource consumption. I don't have any good metrics for that correlation, but it seemed consistent over ~200 training sessions. All CPU, no GPU.
Another observation: before downgrading tensorflow to 1.15 per your suggestion, I'd get this error W tensorflow/core/kernels/data/generator_dataset_op.cc:103] Error occurred when finalizing GeneratorDataset iterator: Cancelled: Operation was cancelled
with every training epoch. That message has disappeared with the downgrade. Comparing embedding results before/after the downgrade, I can't see any material effect on the output or metrics like training speed.
(You've solved my problem (thanks!) but I'll leave the issue close decision to you, since sounds like it ties to more systematic changes.)
from ivis.
Hi, we have pushed a new update to ivis here: ecaf4cc
This update stops TensorFlow 2.1 from spawning new Threads without closing them. This takes care of the warning error seen on every epoch of training, and should also fix the issue you've been seeing in R with the subprocess not terminating correctly.
Please give it a go, hopefully it solves the issues you've been encountering!
from ivis.
Related Issues (20)
- `NotFittedError` after caching and reloading fitted `Ivis` instance HOT 2
- Suggest implementing `predict_proba` and `predict` methods for Ivis object. HOT 1
- How does ivis compare to UMAP? HOT 2
- Add conda-forge package
- About scaling HOT 2
- `KeyError` followed by `joblib.externals.loky.process_executor.BrokenProcessPool` when using `sklearn.model_selection.GridSearchCV` with `n_jobs != 1` HOT 3
- One of the unit tests (knn_retrieval) can fail (machine dependent?) HOT 1
- OSError HOT 1
- attempt to apply non-function HOT 9
- Extremely slow extraction of KNN neighbours on 100k samples HOT 4
- InternalError: Graph execution error: HOT 4
- 2D visulization of crowded cluster with ivis HOT 1
- model_save: optimizer is not compatible with pickle HOT 4
- How to get stable results? HOT 4
- Ivis is not able to run inference on a sparse matrix
- Reproducibility HOT 2
- `chunk_size` in knn set to 0 HOT 2
- Ivis seems to provoke errors when composing a sklearn.pipeline.Pipeline passed to sklearn.model_selection.GridSearchCV and executed in parallel HOT 10
- classification_weight Parameter HOT 2
- Meaning of "Observations" on https://bering-ivis.readthedocs.io/en/latest/hyperparameters.html HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ivis.