README Documentation

Official TypeScript developer resources and documentation for comet-ml/README. Verified technical context for AI.

0 stars TypeScript TypeScript 2 files ยท ~4,195 tokens
RAW Doc

1. Project Overview & Quickstart (comet-ml/README)

Technical Documentation: comet-ml/README

โ„น๏ธ Provenance: Multi-Tier Ingestion ยท CodeWiki Reference

README

Agent Skills & Rules

  • Discovered 21 agent rule(s) and prompt configurations.

--- METRICS ---

2. Official Technical Reference & Guides (comet-ml/comet-ml.github.io)

File: docs/math.md

Functions

[add(a, b)](#add)
Calculates the sum of two variables.
[abs(a)](#abs)
Calculates the absolute value of a number.
[sum(array)](#sum)
Calculates the sum of an array.
[sort(x)](#sort)
Sorts an array of values.
[scientificNotation(number)](#scientificNotation)
Returns a number in exponential format.
[round(x, n)](#round)
Rounds a number to n decimal places.
[min(x)](#min)
Finds the minimum of an array
[max(x)](#max)
Finds the maximum of an array
[range(start, stop, step)](#range)
Creates an array of values in given range
[avg(x)](#avg)
Finds the average (mean) of an array
[transpose(matrix)](#transpose)
Computes the transpose of a matrix
[deviation(x)](#deviation)
Finds the deviation of an array
[variance(x, bias)](#variance)
Calculates the variance of an array
[standardDeviation(x, bias)](#standardDeviation)
Calculates the standard deviation of an array
[standardize(x)](#standardize)
Calculates the standardize of an array
[rank(x)](#rank)
Calculates the rank of an array
[pearson(x, y)](#pearson)
Calculates the Pearson correlation coefficient for two variables.
[spearman(x, y)](#spearman)
Calculates the Spearman correlation coefficient for two variables.
[euclideanDistance(x, y)](#euclideanDistance)
Calculates the Euclidean distance of an array
[manhattanDistance(x, y)](#manhattanDistance)
Calculates the Manhattan (city) distance of an array
[pairwiseDistance(x, distanceMetric)](#pairwiseDistance)
Calculates the pairwise distance of an array
[hierarchicalClustering(pairwiseDistances, linkage)](#hierarchicalClustering)
Computes a hierarchical clustering of a matrix

add(a, b)

Calculates the sum of two variables.

Kind: global function

Param Type Description
a number number
b number number

abs(a)

Calculates the absolute value of a number.

Kind: global function

Param Type Description
a number number

sum(array)

Calculates the sum of an array.

Kind: global function

Param Type Description
array number Array of numbers.

sort(x)

Sorts an array of values.

Kind: global function

Param Type Description
x number Array of numbers.

scientificNotation(number)

Returns a number in exponential format.

Kind: global function

Param Type Description
number number the number to format

Example

js
> scientificNotation(0.00002)
"2.0000e-5"

round(x, n)

Rounds a number to n decimal places.

Kind: global function

Param Type Description
x number Number to round.
n number Number of decimal places.

min(x)

Finds the minimum of an array

Kind: global function

Param Type Description
x number Array of numbers.

max(x)

Finds the maximum of an array

Kind: global function

Param Type Description
x number Array of numbers.

range(start, stop, step)

Creates an array of values in given range

Kind: global function

Param Type Description
start number Start value.
stop number Stop value.
step number Step value.

avg(x)

Finds the average (mean) of an array

Kind: global function

Param Type Description
x number Array of numbers.

transpose(matrix)

Computes the transpose of a matrix

Kind: global function

Param Type Description
matrix Array the matrix to transpose

deviation(x)

Finds the deviation of an array

Kind: global function

Param Type Description
x number Array of numbers.

variance(x, bias)

Calculates the variance of an array

Kind: global function

Param Type Description
x number Array of numbers.
bias boolean If true, the biased sample variance is used.

standardDeviation(x, bias)

Calculates the standard deviation of an array

Kind: global function

Param Type Description
x number Array of numbers.
bias boolean If true, the biased sample variance is used.

standardize(x)

Calculates the standardize of an array

Kind: global function

Param Type Description
x number Array of numbers.

rank(x)

Calculates the rank of an array

Kind: global function

Param Type Description
x number Array of numbers.

pearson(x, y)

Calculates the Pearson correlation coefficient for two variables.

Kind: global function

Param Type Description
x number Array of numbers.
y number Array of numbers.

spearman(x, y)

Calculates the Spearman correlation coefficient for two variables.

Kind: global function

Param Type Description
x number Array of numbers.
y number Array of numbers.

euclideanDistance(x, y)

Calculates the Euclidean distance of an array

Kind: global function

Param Type Description
x number Array of numbers.
y number Array of numbers.

manhattanDistance(x, y)

Calculates the Manhattan (city) distance of an array

Kind: global function

Param Type Description
x number Array of numbers.
y number Array of numbers.

pairwiseDistance(x, distanceMetric)

Calculates the pairwise distance of an array

Kind: global function

Param Type Description
x number Array of array of numbers.
distanceMetric function Distance metric function

hierarchicalClustering(pairwiseDistances, linkage)

Computes a hierarchical clustering of a matrix

Kind: global function

Param Type Description
pairwiseDistances number Pairwise distance matrix.
linkage string Linkage criterion. Inspired by Heather Arthur's clusterfck: https://github.com/harthur/clusterfck

File: docs/table.md

Table

Kind: global class

new Table(data, keys, headers, id, className)

Creates an HTML table element from a list of dictionaries.

Param Type Default Description
data Array.<Object> list of JSON objects (can include HTML elements)
keys Array.<string> (optional) - array of titles to show, in order
headers Array.<string> (optional) - dictionary of header replacements
id string "data-table" (optional) - id for HTML table element
className string "data-table" (optional) - class for HTML table element

Example

js
> table = Table([{"column_one": 1}], ["column_one"], {"column_one": "New Name"},
                "new-id", "new-class");
> table.appendTo("parent-id")

table.generate(headers, id, className)

Generates an HTML table element and saves it in this.table

Kind: instance method of Table

Param Type Default Description
headers Array.<string> dictionary of header replacements
id string "data-table" id for HTML table element
className string "data-table" class for HTML table element

table.appendTo(id)

Appends the table onto the element with id.

Kind: instance method of Table

Param Type Description
id string id of parent container

Example

js
> table = Table([{"column_one": 1}]);
> table.appendTo("parent-id")

table.title(text) โ‡’ `string`

Utility funtion to give title case of headers

Kind: instance method of Table

Param Type Description
text string heading of column

Example

js
> table = Table([{"column_one": 1}]);
> table.title("column one")
"Column One"

File: docs/utils.md

Classes

[Histogram](#Histogram)

Functions

[makeLink(text, url)](#makeLink) โ‡’ `Object`
Returns a span element with link to item.
[copy(obj)](#copy) โ‡’ `Object`
Returns a deepcopy of an object
[identity(obj)](#identity) โ‡’ `Object`
A function that returns what it is given
[compare(field, reverse, func)](#compare) โ‡’ `function`
Creates a comparison function used in sorting
[capitalize(text)](#capitalize) โ‡’ `string`
Returns a string with first letter capitalized
[title(text)](#title) โ‡’ `string`
Returns a string with first letter of every word capitalized
[format(date, mask, utc)](#format) โ‡’ `string`
Formats a Date object as a string. Date Format 1.2.3 (c) 2007-2009 Steven Levithan <stevenlevithan.com> MIT license Includes enhancements by Scott Trenda <scott.trenda.net> and Kris Kowal <cixar.com/~kris.kowal/> Accepts a date, a mask, or a date and a mask. Returns a formatted version of the given date. The date defaults to the current date/time. The mask defaults to dateFormat.masks.default.

Histogram

Kind: global class

new Histogram(hist)

Create a histogram. Data is stored in exponentially
distributed buckets.

Param Type Description
hist JSON A histogram in JSON format

histogram.getMinMax()

Get min and max values for defaults.

Kind: instance method of Histogram

histogram.createValues(start, stop, step, offset)

Create the values for each bucket.

Kind: instance method of Histogram

Param Type Description
start number the starting range
stop number the stoping range
step number the step to increment, in percent
offset number the offset, usually zero

histogram.getBinIndex(value)

Get the bucket index.

Kind: instance method of Histogram

Param Type Description
value number get the bucket index of value

histogram.binarySearch(value, low, high)

Find the value's bucket using binary search.

Kind: instance method of Histogram

Param Type Description
value number the value to lookup
low number the lowest value
high number the highest value

histogram.getCounts(min_value, max_value, span_value)

Compute the counts for each span.

Kind: instance method of Histogram

Param Type Description
min_value number the starting value
max_value number the stoping value
span_value number the step to increment, in value

Returns a span element with link to item.

Kind: global function
Returns: Object - a span node with link as contents

Param Type Description
text string the text for the URL
url string the address for the URL

Example

js
> makeLink("The Text", "https://company.com/")
<span><a href="https://company.com/">The Text</span>

copy(obj) โ‡’ `Object`

Returns a deepcopy of an object

Kind: global function
Returns: Object - a copy of the obj

Param Type Description
obj Object an object to copy

Example

js
> copy({"key": "value"})
{"key": "value"}

identity(obj) โ‡’ `Object`

A function that returns what it is given

Kind: global function
Returns: Object - the object or value

Param Type Description
obj Object an object or value

Example

js
> identity(42)
42

compare(field, reverse, func) โ‡’ `function`

Creates a comparison function used in sorting

Kind: global function
Returns: function - the sorting comparison function

Param Type Default Description
field string the name of an attribute of an object
reverse Object false if true, reverse the sort order
func function a function to apply to the field before sorting

Example

js
> [
   {"field1": 23, ...},
   {"field1": 6, ...},
  ].sort(compare("field1"))

[{"field1": 6, ...}, {"field1": 23, ...}]

capitalize(text) โ‡’ `string`

Returns a string with first letter capitalized

Kind: global function
Returns: string - capitalized string

Param Type Description
text string the text to capitalize

Example

js
> capitalized("some text");
"Some text"

title(text) โ‡’ `string`

Returns a string with first letter of every word capitalized

Kind: global function
Returns: string - capitalized word string

Param Type Description
text string the text of words to capitalize

Example

js
> capitalized("some text");
"Some Text"

format(date, mask, utc) โ‡’ `string`

Formats a Date object as a string.

Date Format 1.2.3
(c) 2007-2009 Steven Levithan <stevenlevithan.com>
MIT license

Includes enhancements by Scott Trenda <scott.trenda.net>
and Kris Kowal <cixar.com/~kris.kowal/>

Accepts a date, a mask, or a date and a mask.
Returns a formatted version of the given date.
The date defaults to the current date/time.
The mask defaults to dateFormat.masks.default.

Kind: global function
Returns: string - the data as a string format

Param Type Description
date Date instance
mask string
utc string

Example

js
> new Date().format("HH:MM:ss")
"23:30:56"