Giter Site home page Giter Site logo

autoencoders's Introduction

Introduction to unsupervised learning using autoencoders

An ongoing repository for hands-on lectures for unsupervised learning using auto encoders.

Disclaimer, this repository is heavily influenced by tilman151/ae_bakeoff and lilianweng's blog, which are very good learning resources. This repo takes the basic autoencoders and tries to visualize some detail like e.g. sparse latent code visualizations during training.

Repo goal

The notebook will show the basic concept and some adaptations of autoencoders and unsupervised learning. Some definitions are included as well. For inpeth views please see the following papers.

In case I got something wrong, please open an issue, so I can fix it. This repository is work in progress, which means there will be more autoencoders added as soon as I find time to learn about them (e.g. VEA / BVEA).

Requirements

This repo is only tested for >= python3.9, <= python3.11. Please make sure your machine is running a compatible python version (recommending 3.9).

Installation

Get poetry

For a detailed guide see the documentation on poetry.

# Linux, macOS, Windows (WSL)
curl -sSL https://install.python-poetry.org | python3 -
# Windows (Powershell)
(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | py -

Install this repo

Invoke poetry install, the rest will be taken care of.

git clone https://github.com/arrrrrmin/autoencoders.git
cd autoencoder
poetry install .
poetry run which python
# The last command will show you the environments python path.
# Ok your good to go.

Alternative installation

Clone the repo and cd into it and run:

git clone https://github.com/arrrrrmin/autoencoders.git
cd autoencoder
python3 -m venv env
source env/bin/activate
python3 -m pip install -r requirements.txt

In this case poetry does not play any role, as long as the environment is activated, your fine.

Usage

Run an experiment

Following commands assume you'r in the root of the repo.

  • python3 -m autoencoder.scripts.run - Open the file and uncomment/edit line and hyperparameters.
  • poetry run python3 -m autoencoder.scripts.run - Will do the same with poetry running on the machine.
  • While the experiment is running execute tensorboard --logdir logs, here you have a dashboard to look after your experiment.

You can also do this in jupyter, but beaware if something fails the kernel needs a restart.

Jupyter notebooks

In case the poetry installation is successfull, one can simply use the notebooks locally with poetry run jupyter notebook.

When you'r working with a standard python environment you can execute scripts like so: jupyter notebook

autoencoders's People

Contributors

arrrrrmin avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.