← 开源
kvh

ramp

Rapid Machine Learning Prototyping in Python

Model DevelopmentClassical MLPython
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
654
Star
97
Fork
+-1
本周
3
贡献者
创建于 2012-05-04 · 更新于 2026-10-10 · 今日第 15444 名
主要开发者
kvhwrobstoryfrgtn

kvh/ramp 排名第 15,444,有 654 个星标。

同类别比较

kvh/ramp 排名第 15,444,此处有 8 个同类条目;tensorflow/tcav 排名第 15,446。

同类别比较
名称排名指标
NVlabs/mimicgen15,436
语言:
Python
星标数:
654
分叉数:
119
简介:
This code corresponds to simulation environments used as part of the MimicGen project.
facebookresearch/clevr-dataset-gen15,438
语言:
Python
星标数:
654
分叉数:
220
简介:
A Diagnostic Dataset for Compositional Language and Elementary Visual Reasoning
facebookresearch/pippo15,439
语言:
Python
星标数:
654
分叉数:
48
简介:
Pippo: High-Resolution Multi-View Humans from a Single Image
fangchangma/self-supervised-depth-completion15,440
语言:
Python
星标数:
654
分叉数:
134
简介:
ICRA 2019 "Self-supervised Sparse-to-Dense: Self-supervised Depth Completion from LiDAR and Monocular Camera"
tensorflow/tcav15,446
语言:
Jupyter Notebook
星标数:
654
分叉数:
148
简介:
Code for the TCAV ML interpretability project
Yuliang-Liu/Curve-Text-Detector15,449
语言:
Jupyter Notebook
星标数:
653
分叉数:
156
简介:
This repository provides train&test code, dataset, det.&rec. annotation, evaluation script, annotation tool, and ranking.
ascust/3DMM-Fitting-Pytorch15,450
语言:
Python
星标数:
653
分叉数:
97
简介:
A 3DMM fitting framework using Pytorch.
choosewhatulike/trainable-agents15,452
语言:
Python
星标数:
653
分叉数:
51
简介:
Code and datasets for "Character-LLM: A Trainable Agent for Role-Playing"
关键参数与规格
关键参数与规格
参数值
语言Python
类别Model Development
子类别Classical ML
星标数654
分叉数97
贡献者3
创建日期2012-05-04
更新日期2026-10-10
1 天星标数0
7 天星标数-1
排名15,444
上次排名15,254
排名变化-190
7 天星标排名17,771
上次 7 天星标排名17,730
7 天星标排名变化-41
总星标排名15,682
上次总星标排名15,650
总星标排名变化-32
国家USA
README 摘录

Ramp - Rapid Machine Learning Prototyping ========================================= Ramp is a python library for rapid prototyping of machine learning solutions. It's a light-weight pandas-based machine learning framework pluggable with existing python machine learning and statistics tools (scikit-learn, rpy2, etc. Ramp provides a simple, declarative syntax for exploring features, algorithms and transformations quickly and efficiently. ** **Clean, declarative syntax** **Complex feature transformations** **Data context awareness** **Composability** **Easy extensibility** Quick start Getting started with Ramp: Classifying insults Or, the quintessential Iris example: Status

Ramp is alpha currently, so expect bugs, bug fixes and API changes. Requirements Numpy Scipy Pandas PyTables Sci-kit Learn gensim Author Ken Van Haren. Email with feedback/questions: kvh@science. io @squaredloss Contributors John McDonnell Rob Story

常见问题

记录了多少星标和分叉?

kvh/ramp 有 654 个星标和 97 个分叉。

仓库排名是多少?

kvh/ramp 排名第 15,444。

记录的语言和类别是什么?

kvh/ramp 有 654 个星标,语言为 Python,类别为 Model Development。

哪个仓库排名最接近?

kvh/ramp 与 tensorflow/tcav 比较,后者排名第 15,446,有 654 个星标。

README

Ramp - Rapid Machine Learning Prototyping

Ramp is a python library for rapid prototyping of machine learning solutions. It's a light-weight pandas-based machine learning framework pluggable with existing python machine learning and statistics tools (scikit-learn, rpy2, etc.). Ramp provides a simple, declarative syntax for exploring features, algorithms and transformations quickly and efficiently.

Documentation: http://ramp.readthedocs.org

Why Ramp?

  • Clean, declarative syntax

  • Complex feature transformations

    Chain and combine features:

Normalize(Log('x'))
Interactions([Log('x1'), (F('x2') + F('x3')) / 2])
Reduce feature dimension:
DimensionReduction([F('x%d'%i) for i in range(100)], decomposer=PCA(n_components=3))
Incorporate residuals or predictions to blend with other models:
Residuals(simple_model_def) + Predictions(complex_model_def)
  • Data context awareness

    Any feature that uses the target ("y") variable will automatically respect the current training and test sets. Similarly, preparation data (a feature's mean and stdev, for example) is stored and tracked between data contexts.

  • Composability

    All features, estimators, and their fits are composable, pluggable and storable.

  • Easy extensibility

    Ramp has a simple API, allowing you to plug in estimators from scikit-learn, rpy2 and elsewhere, or easily build your own feature transformations, metrics, feature selectors, reporters, or estimators.

Quick start

Getting started with Ramp: Classifying insults

Or, the quintessential Iris example:

import pandas
from ramp import *
import urllib2
import sklearn
from sklearn import decomposition


# fetch and clean iris data from UCI
data = pandas.read_csv(urllib2.urlopen(
    "http://archive.ics.uci.edu/ml/machine-learning-databases/iris/iris.data"))
data = data.drop([149]) # bad line
columns = ['sepal_length', 'sepal_width', 'petal_length', 'petal_width', 'class']
data.columns = columns


# all features
features = [FillMissing(f, 0) for f in columns[:-1]]

# features, log transformed features, and interaction terms
expanded_features = (
    features +
    [Log(F(f) + 1) for f in features] +
    [
        F('sepal_width') ** 2,
        combo.Interactions(features),
    ]
)


# Define several models and feature sets to explore,
# run 5 fold cross-validation on each and print the results.
# We define 2 models and 4 feature sets, so this will be
# 4 * 2 = 8 models tested.
shortcuts.cv_factory(
    data=data,

    target=[AsFactor('class')],
    metrics=[
        [metrics.GeneralizedMCC()],
        ],
    # report feature importance scores from Random Forest
    reporters=[
        [reporters.RFImportance()],
        ],

    # Try out two algorithms
    model=[
        sklearn.ensemble.RandomForestClassifier(
            n_estimators=20),
        sklearn.linear_model.LogisticRegression(),
        ],

    # and 4 feature sets
    features=[
        expanded_features,

        # Feature selection
        [trained.FeatureSelector(
            expanded_features,
            # use random forest's importance to trim
            selectors.RandomForestSelector(classifier=True),
            target=AsFactor('class'), # target to use
            n_keep=5, # keep top 5 features
            )],

        # Reduce feature dimension (pointless on this dataset)
        [combo.DimensionReduction(expanded_features,
                            decomposer=decomposition.PCA(n_components=4))],

        # Normalized features
        [Normalize(f) for f in expanded_features],
    ]
)

Status

Ramp is alpha currently, so expect bugs, bug fixes and API changes.

Requirements

  • Numpy
  • Scipy
  • Pandas
  • PyTables
  • Sci-kit Learn
  • gensim

Author

Ken Van Haren. Email with feedback/questions: kvh@science.io @squaredloss

Contributors

排名相邻
同类项目