Coder Social home page Coder Social logo

fzergz / sklearn-sfa Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wiskott-lab/sklearn-sfa

0.0 0.0 0.0 1.25 MB

This project provides Slow Feature Analysis as a scikit-learn-style package.

License: BSD 3-Clause "New" or "Revised" License

Python 100.00%

sklearn-sfa's Introduction

sklearn-sfa - An implementation of Slow Feature Analysis compatible with scikit-learn

sklearn-sfa or sksfa is an implementation of Slow Feature Analysis for scikit-learn.

It is meant as a standalone transformer for dimensionality reduction or as a building block for more complex representation learning pipelines utilizing scikit-learn's extensive collection of machine learning methods.

The package contains a solver for linear SFA and some auxiliary functions. The documentation provides an explanation of the algorithm, different use-cases, as well as pointers how to fully utilize SFA's potential, e.g., by employing non-linear basis functions or more sophisticated architectures.

For use with high-dimensional image data, sklearn-sfa now also includes an experimental implementation of Hierarchical SFA networks (HSFA) - please consult the introductory examples in the documentation.

Since sklearn-sfa is in its early stages, we also recommend taking a look at the Modular Toolkit for Data Processing MDP which provides stable SFA implementations that have stood the test of time.

Installation

The latest official version of the package can be installed from PyPi via pip:

pip install --user sklearn-sfa

To use the latest code, the package can also be cloned directly from GitHub and then be installed via:

cd sklearn-sfa
pip install -e .

Basic usage

In Python 3.6+, the package can then be imported as

import sksfa

The package comes with an SFA transformer. Below you see an example of initializing a transformer that extracts 2-dimensional features:

sfa_transformer = sksfa.SFA(n_components=2)

The transformer implements sklearn's typical interface by providing fit, fit_transform, and transform methods.

sklearn-sfa's People

Contributors

mrschue avatar moritzlange 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.