Skip Menu |

This queue is for tickets about the AI-FANN CPAN distribution.

Report information
The Basics
Id: 44832
Status: resolved
Worked: 10 min
Priority: 0/
Queue: AI-FANN

People
Owner: Nobody in particular
Requestors: paul [...] paulgraydon.co.uk
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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 :)
Subject: Re: [rt.cpan.org #44832] AutoReply: $ann->train() fails
Date: Mon, 06 Apr 2009 12:24:48 -1000
To: bug-AI-FANN [...] rt.cpan.org
From: Paul Graydon <paul [...] paulgraydon.co.uk>
Also attempts to call it using: AI::FANN->train($ann,@input,@output); or AI::FANN->train($ann,@input,$output); fail.
train method requires array *references* The docs will be updated on the next release to state it explicetly.