Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • P pyod
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 144
    • Issues 144
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 16
    • Merge requests 16
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Yue Zhao
  • pyod
  • Wiki
  • Setting up Keras and Tensorflow for Neural net Based models

Setting up Keras and Tensorflow for Neural net Based models · Changes

Page history
Created Setting up Keras and Tensorflow for Neural-net Based models (markdown) authored Dec 12, 2018 by Yue Zhao's avatar Yue Zhao
Show whitespace changes
Inline Side-by-side
Setting-up-Keras-and-Tensorflow-for-Neural-net-Based-models.md 0 → 100644
View page @ 582b89ee
PyOD includes some neural network based models written in **Keras**, such as AutoEncoder. However, you may find that after **pip install pyod**, AutoEncoder models do not run. This is expected because we do not want PyOD relies on too many packages, and not everyone needs to run neural nets.
If you want to run neural-net based models, please first install **Keras** + a backend library, e.g., tensorflow. Either of the following two should do the installation for you:
* `pip install keras tensorflow or pip install keras tensorflow`
* `conda install keras tensorflow or pip install keras tensorflow`
**If you have tensorflow-gpu installed, keras would automatically run with GPU.** You need tensorflow-gpu if your device have GPU and want to leverage it, otherwise a normal version TensorFlow should be totally fine.
* `pip install keras tensorflow or pip install keras tensorflow-gpu`
* `conda install keras tensorflow or pip install keras tensorflow-gpu`
***
Here are some potential error messages you may encounter:
* ModuleNotFoundError: No module named 'theano'
In this case, you should specify keras backend to the one you want to use, e.g., TensorFlow
Go to $HOME/.keras/keras.json, and change the "backend" to "tensorflow"
* ModuleNotFoundError: No module named 'error'
In this case, you need to install keras and tensorflow with conda, which can either be done in the GUI or simply use "conda install keras" and "conda install tensorflow"
Clone repository
  • FAQ: MacOS with Python 2.7
  • Home
  • PyOD Wiki Page
  • Setting up Keras and Tensorflow for Neural net Based models
  • _Footer