Skip to content

Train Error #1296

Closed
Closed
@HJH0924

Description

@HJH0924

The steps to reproduce the error are as follows:
1、Run the command to create the environment:
sudo docker run -it -v postgresml_data:/var/lib/postgresql -p 5434:5432 -p 8000:8000 ghcr.io/postgresml/postgresml:2.8.1 sudo -u postgresml psql -d postgresml

2、Execute the following SQL statements:
DROP TABLE IF EXISTS pgml.commits_build CASCADE;
CREATE TABLE pgml.commits_build (
vector Integer[],
result bool
);

3、Insert data into the pgml.commits_build table:
INSERT INTO pgml.commits_build VALUES
('{4,5,6}', false),
('{5,6,7}', true),
('{6,7,8}', false),
('{7,8,9}', true),
('{8,9,10}', false);

4、Run the pgml.train function:
SELECT * FROM pgml.train(
'commits:category:build',
'classification',
'pgml.commits_build',
'result'
);
It can run normally and the linear algorithm has been deployed.
image

5、Encounter the following error:
-- ERROR: called Option::unwrap() on a None value
SELECT * FROM pgml.train('commits:category:build', algorithm => 'ridge');
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions