describe_clusters
Describe your clusters from their given relevant TF-IDF terms using OpenAI.
Usage
The following example shows how the step can be used in a recipe.
Examples
Examples
Get description from tf-idf cluster keywords
Get description from tf-idf cluster keywords
General syntax for using the step in a recipe. Shows the inputs and outputs the step is expected to receive and will produce respectively. For futher details see sections below.
Inputs & Outputs
The following are the inputs expected by the step and the outputs it produces. These are generally
columns (ds.first_name
), datasets (ds
or ds[["first_name", "last_name"]]
) or models (referenced
by name e.g. "churn-clf"
).
Inputs
Inputs
TF-IDF keywords from the clusters to describe in natural language.
Outputs
Outputs
Configuration
The following parameters can be used to configure the behaviour of the step by including them in
a json object as the last “input” to the step, i.e. step(..., {"param": "value", ...}) -> (output)
.
Parameters
Parameters
Language. Language you wish to use. Defaults to the TF-IDF keywords.
Model Configuration. Configuration for OpenAI’s model.
Properties
Properties
OpenAI model to choose.
Values must be one of the following:
gpt-4o
gpt-4o-mini
Temperature. Higher means more creativity, but also makes the model more likely to hallucinate. Lower temperature yields more deterministic results.
Values must be in the following range: