Giter VIP home page Giter VIP logo

pymmds's Introduction

pyMMDS

Extendible metric MDS in Python (akin to landmark MDS). This package implements an active metric MDS method described in "Principal Component and Correspondence Analysis in R" by Dr. Herve Abdi (2017) and is thus similar to package bios2mds written in the R language. The method allows new objects to be projected onto an existing eigenbasis defined by a set of active objects and is thus useful whenever one needs to have a stable and scalable MDS transformation.

Requirements

  • Python >= 3.5
  • NumPy >= 1.14.0
  • Pandas >= 0.22.0

Installation

pip install pymmds

Usage

There is only one core object (mmds.Space) and two methods to consider:

  • Space.__init__(dm: pandas.DataFrame) - takes a symmetric distance matrix of active (landmark) samples and creates an MDS space
  • Space.project(dm: pandas.DataFrame) - takes a table of distances between any number of supplementary samples and all active samples and projects the former onto the initialised MDS space.

There is also a utility function mmds.read_dm that will help you read the DMs in case you don't want to tweak pandas.read_csv yourself.

All functions and methods are well-documented. You can either use Python's help, iPython's ? or whatever docstring tools your IDE provides to view the docs from within your development environment or read the Wiki page.

pymmds's People

Contributors

grayfall avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

pymmds's Issues

Deprecation warnings from pandas

The pandas package is deprecating DataFrame.as_matrix. The warnings are quite annoying. We should probably update for the new interface.

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.