988e901066
Añade campos params y output al frontmatter YAML de las 506 funciones del registry. Cada parámetro tiene descripción semántica (qué representa, unidades, rango típico) y cada función describe qué produce su output. Permite a agentes razonar sobre cadenas de composición (ej: prices → log_return → sharpe_ratio) sin leer código.
988 B
988 B
name, kind, lang, domain, version, purity, signature, description, tags, uses_functions, uses_types, returns, returns_optional, error_type, imports, params, output, tested, tests, test_file_path, file_path
| name | kind | lang | domain | version | purity | signature | description | tags | uses_functions | uses_types | returns | returns_optional | error_type | imports | params | output | tested | tests | test_file_path | file_path | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| linspace | function | py | datascience | 1.0.0 | pure | def linspace(start: float, stop: float, num: int) -> list | Genera una lista de valores equiespaciados entre start y stop (inclusivos). |
|
false |
|
lista de num valores equiespaciados entre start y stop (ambos inclusive) | false | python/functions/datascience/datascience.py |
Ejemplo
linspace(0, 1, 5)
# [0.0, 0.25, 0.5, 0.75, 1.0]
Notas
Equivalente a numpy.linspace pero sin numpy. Si num=1, retorna [start]. Si num<=0, retorna lista vacia.