Description
Using latest version 2.4.4. There seems to be a problem with preprocess.
I have a simple iris dataset where the "Class" field has categorical values.
Sample:
Sepallength | Class | Sepalwidth | Petallength | Petalwidth
-------------+-------------+------------+-------------+------------
5.1 | Iris-setosa | 3.5 | 1.4 | 0.2
4.9 | Iris-setosa | 3 | 1.4 | 0.2
4.7 | Iris-setosa | 3.2 | 1.3 | 0.2
4.6 | Iris-setosa | 3.1 | 1.5 | 0.2
5 | Iris-setosa | 3.6 | 1.4 | 0.2
The command I tried to run as per documentation
SELECT pgml.train(
project_name => 'preprocessed_model',
task => 'classification',
relation_name => 'iris',
target => 'Class',
preprocess => '{
"Class": {"encode": "target"}
}'
);
ERROR: function pgml.train(project_name => unknown, task => unknown, relation_name => unknown, target => unknown, preprocess => unknown) does not exist
LINE 1: SELECT pgml.train(
^
HINT: No function matches the given name and argument types. You might need to add explicit type casts.