<commit_before>---
layout: default
title: dcolor/api/ColorModel
---

# Color Models

`dcolor` provides a set of color model modules that you can either use directly or extend to build your own models. The
purpose of a color model is to map values to colors allowing one to colorize data output based on the value of the data.

Before proceeding checkout [setup page](setup.md) on how to setup a project using dcolor. This will be required to leverage the samples from this page.

##### Table of Contents
[SimpleColorModel](#simple)
[NeutralColorModel](#neutral)
[MeanColorModel](#mean)
<commit_msg>fix toc formatting<commit_after>---
layout: default
title: dcolor/api/ColorModel
---

# Color Models

`dcolor` provides a set of color model modules that you can either use directly or extend to build your own models. The
purpose of a color model is to map values to colors allowing one to colorize data output based on the value of the data.

Before proceeding checkout [setup page](setup.md) on how to setup a project using dcolor. This will be required to leverage the samples from this page.

##### Table of Contents
[SimpleColorModel](#simple)  
[NeutralColorModel](#neutral)  
[MeanColorModel](#mean)  

{'fraction_non_alphanumeric': 0.07456503728251865, 'fraction_numerical': 0.0, 'mean_word_length': 4.618604651162791, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6229309', 'n_tokens_mistral': 336, 'n_tokens_neox': 310, 'n_words': 168}