Code Monkey home page Code Monkey logo

sci-feature-space's Introduction

sci-feature-space

This repository contains a python moduled named "miff" that lets you define a multivariate feature space, and compute a distance metric between its elements.

A "feature space" as defined in this module is just a set of individual features, which each may be real/integer/categorical/boolean and scalar/vector valued. So for example you could have a feature space describing census blocks, where each element of the space consists of the name of the town it falls into, its area in square kilometers, the income distribution of its inhabitants, and the median age of all residents. There is no limit to the Number of features that can be defined for a feature space.

This module then provides a flexible framework for computing scalar distance metrics for the elements of this feature space. The general approach is that each individual feature is associated with a method for computing a scalar distance metric for that feature individually. You can choose between several different per-feature distance metrics (e.g. manhattan distance, cosine distance, etc.) or define your own.

This module then provides routines for scaling the per-feature distance metrics to a comparable range. For example if a feature space contains both median age and median income (in dollars), the individual differences are not really comparable: an age difference of 50 years is probably a lot more significant than an income difference of 50 dollars. So this module contains a choice of methods that can be used to map per-feature difference values into the range [0 1] so that they are more directly comparable.

This module combines the re-mapped metric values using a simple weighted sum. The weights are user-defined.

sci-feature-space's People

Contributors

jbcollins-spatially avatar

Watchers

Jose Garcia avatar James Cloos avatar Kartik Venkatesh 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.