All Projects → bfgray3 → cattonum

bfgray3 / cattonum

Licence: other
Encode Categorical Features

Programming Languages

r
7636 projects
C++
36643 projects - #6 most used programming language

Projects that are alternatives of or similar to cattonum

Onnx R
R Interface to Open Neural Network Exchange (ONNX)
Stars: ✭ 31 (+0%)
Mutual labels:  cran, rstats
rchess
♛ Chess package for R
Stars: ✭ 68 (+119.35%)
Mutual labels:  cran, rstats
Liger
Lightweight Iterative Gene set Enrichment in R
Stars: ✭ 44 (+41.94%)
Mutual labels:  cran, rstats
Dataexplorer
Automate Data Exploration and Treatment
Stars: ✭ 362 (+1067.74%)
Mutual labels:  cran, rstats
EntityEmbedding-Working Example
This repository contains a notebook demonstrating a practical implementation of the so-called Entity Embedding for Encoding Categorical Features for Training a Neural Network.
Stars: ✭ 75 (+141.94%)
Mutual labels:  encoding, categorical-features
Ggrepel
📍 Repel overlapping text labels away from each other.
Stars: ✭ 853 (+2651.61%)
Mutual labels:  cran, rstats
Refinr
Cluster and merge similar char values: an R implementation of Open Refine clustering algorithms
Stars: ✭ 91 (+193.55%)
Mutual labels:  cran, rstats
Highcharter
R wrapper for highcharts
Stars: ✭ 583 (+1780.65%)
Mutual labels:  cran, rstats
Reactr
React for R
Stars: ✭ 227 (+632.26%)
Mutual labels:  cran, rstats
Collapse
Advanced and Fast Data Transformation in R
Stars: ✭ 184 (+493.55%)
Mutual labels:  cran, rstats
Pkgsearch
Search R packages on CRAN
Stars: ✭ 73 (+135.48%)
Mutual labels:  cran, rstats
pbapply
Adding progress bar to '*apply' functions in R
Stars: ✭ 115 (+270.97%)
Mutual labels:  cran, rstats
D3r
d3.js helpers for R
Stars: ✭ 133 (+329.03%)
Mutual labels:  cran, rstats
heddlr
Bring a functional programming mindset to R Markdown document generation
Stars: ✭ 14 (-54.84%)
Mutual labels:  cran, rstats
ctv
CRAN Task View Initiative
Stars: ✭ 17 (-45.16%)
Mutual labels:  cran, rstats
githubdashboard
#rstats github flexdashboard
Stars: ✭ 40 (+29.03%)
Mutual labels:  rstats
mrgsolve
Simulate from ODE-based population PK/PD and QSP models in R
Stars: ✭ 84 (+170.97%)
Mutual labels:  rstats
rfishbase
R interface to the fishbase.org database
Stars: ✭ 79 (+154.84%)
Mutual labels:  rstats
PackageDevelopment
Task View: PackageDevelopment
Stars: ✭ 38 (+22.58%)
Mutual labels:  cran
opendata
CRAN OpenData Task View
Stars: ✭ 192 (+519.35%)
Mutual labels:  cran

cattonum

CRAN_Status_Badge R build status Codecov test coverage Total Downloads lifecycle Licence

Special note

I am currently looking for someone who would be interested in becoming the official maintainer of the package. Advanced skill in R or previous package development experience is not necessary. I will be able to help out with code review, etc. Please comment on this issue if you are interested.

Summary

cattonum (“cat to num”) provides different ways to encode categorical features as numerics. Its goal is to be a one-stop shop for all categorical encoding needs. It includes the following:

  • aggregate function encoding: catto_aggregate()
  • dummy encoding: catto_dummy()
  • frequency encoding: catto_freq()
  • label encoding: catto_label()
  • leave-one-out encoding: catto_loo()
  • mean encoding: catto_mean()
  • median encoding: catto_median()
  • one-hot encoding: catto_onehot()

There are many existing packages with which to encode categorical features, including (among others):

Installation

The development version can be installed from the develop branch on GitHub, which is the default branch.

remotes::install_github("bfgray3/cattonum", ref = "develop")

The latest official release can be installed from CRAN.

install.packages("cattonum")

Usage

library(cattonum)
data(iris)
head(catto_loo(iris, response = Sepal.Length))
#> # A cattonum_df with the following data:
#>   Sepal.Length Sepal.Width Petal.Length Petal.Width  Species
#> 1          5.1         3.5          1.4         0.2 5.004082
#> 2          4.9         3.0          1.4         0.2 5.008163
#> 3          4.7         3.2          1.3         0.2 5.012245
#> 4          4.6         3.1          1.5         0.2 5.014286
#> 5          5.0         3.6          1.4         0.2 5.006122
#> 6          5.4         3.9          1.7         0.4 4.997959

Code of Conduct

Please note that this project is released with a Contributor Code of Conduct. By contributing, you agree to abide by its terms.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].