• Stars
    star
    11
  • Rank 1,640,895 (Top 34 %)
  • Language
    Racket
  • License
    MIT License
  • Created almost 6 years ago
  • Updated 10 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Racket Machine Learning

Racket Machine Learning - Core

GitHub release Travis Status Coverage Status raco pkg install rml-core Documentation GitHub stars MIT License

This Package is part of an expected set of packages implementing machine learning capabilities for Racket. The core of this package is the management of datasets, these data sets are assumed to be for training and testing of machine learning capabilities. This package does not assume anything about such capabilities, and uses an expansive notion of machine learning that should cover statistical inferencing, tree and decision matrix models, as well as deep leaning approaches.

This module deals with two opaque structure types, data-set and data-set-field. These are not available to clients directly although certain accessors are exported by this module. Conceptually a data-set is a table of data, columns represent fields that are either features that represent properties of an instance, and classifiers or labels that are used to train and match instances.

See the rml-knn (not quite there yet) repository for an example capability built upon this package.

Modules

  • data - manages data sets, load from CSV and JSON files, save and load snapshots as well as manage partitions and statistics.
  • individual - manages individuals when classifying against a data set.
  • classify - describes a contract for classifier functions and a set of higher-order cross-classifiers over data sets.
  • results - provides a confusion matrix that records the results of classification as a mapping from true to predicted values.
  • not-implemented - really a convenience for raising fail:unsupported exceptions.

Example

The following example loads a sample data set and displays some useful information before_script writing a snapshot to the current output port.

(require rml/data.rkt)

(define iris-data-set
  (load-data-set "iris_training_data2.csv"
                 'csv
                 (list
                   (make-feature "sepal-length" #:index 0)
                   (make-feature "sepal-width" #:index 1)
                   (make-feature "petal-length" #:index 2)
                   (make-feature "petal-width" #:index 3)
                   (make-classifier "classification" #:index 4))))

(displayln (classifier-product dataset))
(newline)

(displayln (feature-statistics dataset "sepal-width"))
(newline)

(write-snapshot dataset (current-output-port))
(newline)

(for ([row (result-matrix-formatted (make-result-matrix dataset))])
  (displayln row))

The result of feature-statistics returns an instance of the statistics struct from math/statistics.

Racket Language

More Repositories

1

rust-atelier

Rust native core model for the AWS Smithy IDL
Rust
76
star
2

rust-email_address

A Rust crate providing an implementation of an RFC-compliant `EmailAddress` newtype.
Rust
59
star
3

rust-upnp

Rust crate providing basic UPnP protocol implementations
Rust
18
star
4

rust-rdftk

The RDF toolkit for Rust is a set of crates providing the ability to work with RDF data
Rust
15
star
5

simple-oauth2

Simple Racket implementation of the OAuth2 family of specifications
Racket
13
star
6

rust-xml_dom

A Rust crate providing a reasonably faithful implementation of the W3C DOM Core
Rust
11
star
7

dali

Simple text templating (mustache/handlebars style) for Racket.
Racket
11
star
8

rust-financial

Model for provider-neutral financial data, with implementation for IEX
Rust
11
star
9

rust-aws-iam

A Rust crate for dealing with the actual Policy files themselves
Rust
8
star
10

rust-codes

A family of packages to provide standard codes in an independent yet structured manner
HTML
8
star
11

rust-aws-arn

Tools to manipulate AWS Amazon Resource Name (ARN) strings.
Rust
6
star
12

PyDL7

Python API for parsing DAN Dive Log files.
Python
6
star
13

rdftools

Command line tools for simple RDF file operations
Python
5
star
14

rust-schemer

A pedantic implementation of the R7RS Scheme programming language in Rust
Rust
4
star
15

rust-text_trees

Simple textual output for tree-like structures.
Rust
4
star
16

rust-unique_id

A trait and implementations for unique ID generators.
Rust
4
star
17

racket-thrift

Thrift support for Racket
Racket
3
star
18

locale-codes

Locale-related codes/identifiers and any standards-based information concerning them
Rust
3
star
19

behavior

Behavioral models for Racket
Racket
3
star
20

rust-asdi

Another Simplistic Datalog Implementation (in Rust)
Rust
3
star
21

rml-decisiontrees

Racket Machine Learning - Decision Trees
Racket
3
star
22

rust-dygpi

Provides support for "Dynamic Generic PlugIns", library based plugins for Rust.
Rust
2
star
23

dotfiles

Configuration files for multiple machines
Shell
2
star
24

racket-codepoint

Library for operations on Unicode codepoints.
Racket
2
star
25

johnstonskj.github.io

Thoughts, Projects and More
TeX
1
star
26

rust-newstr

Simple macros for declaring String-base new types.
Rust
1
star
27

rml-neural

Pedantic implementation of neural networks for deep learning in Racket
Racket
1
star
28

RESTEasy-Scala

RESTEasy Scala Bootstrap
Scala
1
star
29

racket-scaffold

Racket language templated content generator integrated into raco
Racket
1
star
30

advent_of_code_2020

Advent of code for 2020, or some of it at least
Racket
1
star
31

rml-knn

K-Nearest Neighbor implementation in Racket.
Racket
1
star
32

racket-parquet

Parquet support for Racket
Racket
1
star
33

rust-search_path

Implement a simple search path file finder.
Rust
1
star
34

rust-ptnets

Place/Transition Net implementations.
C
1
star
35

rust-xml_dom_xpath

A Rust crate providing an implementation of W3C XML Path Language (XPath), Version 1.0 over the Document Object Model Core, Level 2.
Rust
1
star
36

racket-rdf-core

RDF core data model with statements, graphs, and datasets
Racket
1
star
37

shlog

Logging functions for shell scripts.
Shell
1
star