• Stars
    star
    1
  • Language
    Racket
  • License
    MIT License
  • Created almost 6 years ago
  • Updated about 1 month ago

Reviews

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

Repository Details

K-Nearest Neighbor implementation in Racket.

Racket Machine Learning - k-Nearest Neighbor

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

This package implements a k-NN approach for the Racket Machine Learning package set, based on an article by Tony Baker. The classifier module provides a relatively simple classification approach by determining the Euclidean distance between an individual and a set of pre- classified training data. This package relies on the rml-core package and provides a classifier for use with the rml/classify module.

Modules

  • classifier - Support for classifying an individual against a trained data set.

Examples

(require rml/data
         rml/individual
         rml/results 
         rml-knn/classifier)

; construct dataset ...

(define iris (make-individual "sepal-length" 6.3
                              "sepal-width" 2.5
                              "petal-length" 4.9
                              "petal-width" 1.5
                              "classification" "Iris-versicolor"))

(define C (make-result-matrix dataset))

(record-result C
  (hash-ref iris "classification")
  (first ((make-knn-classifier 5) dataset iris)))

The function make-knn-classifier returns the classification function itself, this conforms to the classifier/c contract from the rml/classify module.

Racket Langaueg

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

rml-core

Racket Machine Learning
Racket
11
star
8

dali

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

rust-financial

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

rust-aws-iam

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

rust-codes

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

rust-aws-arn

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

PyDL7

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

rdftools

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

rust-schemer

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

rust-text_trees

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

rust-unique_id

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

racket-thrift

Thrift support for Racket
Racket
3
star
19

locale-codes

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

behavior

Behavioral models for Racket
Racket
3
star
21

rust-asdi

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

rml-decisiontrees

Racket Machine Learning - Decision Trees
Racket
3
star
23

rust-dygpi

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

dotfiles

Configuration files for multiple machines
Shell
2
star
25

racket-codepoint

Library for operations on Unicode codepoints.
Racket
2
star
26

johnstonskj.github.io

Thoughts, Projects and More
TeX
1
star
27

rust-newstr

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

rml-neural

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

RESTEasy-Scala

RESTEasy Scala Bootstrap
Scala
1
star
30

racket-scaffold

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

advent_of_code_2020

Advent of code for 2020, or some of it at least
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