Subject: | $ann->train() fails |
Date: | Mon, 06 Apr 2009 12:11:29 -1000 |
To: | bug-AI-FANN [...] rt.cpan.org |
From: | Paul Graydon <paul [...] paulgraydon.co.uk> |
Hi,
I was trying to implement AI::FANN and use the fann_train function.
From the documentation:
$ann->train($input, $desired_output)
$input and $desired_output are arrays.
Attempts to use that format like this:
$ann->train(@location,$output);
result in:
Usage: AI::FANN::train(self, input, desired_output) at ./fann.pl line 47.
Trying to use it with @output makes no difference. It doesn't seem to
accept the object reference of $ann as the "Self" required. Only
reference to "train(" in the XS code provides:
void
fann_train(self, input, desired_output)
struct fann *self;
fta_input input;
fta_output desired_output;
CLEANUP:
_check_error(aTHX_ (struct fann_error *)self);
Apologies, but I've no idea about XS / wrapping functions or the works
so no idea how to fix :)