Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: OO Design Question

by Sixtease (Friar)
on Mar 13, 2008 at 07:42 UTC ( #673922=note: print w/ replies, xml ) Need Help??


in reply to OO Design Question

Heh, as usual, formulating the question made me reveal an answer. I'll require the models to provide a "new" method, and say

my $model = $self->{'model'}->new($self); $model->train($data);

Other suggestions are of course most welcome!

use strict; use warnings; print "Just Another Perl Hacker\n";


Comment on Re: OO Design Question
Download Code
Replies are listed 'Best First'.
Re^2: OO Design Question
by Anonymous Monk on Mar 14, 2008 at 03:57 UTC
    I see a red herring my $model = $self->{'model'}->new($self);

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://673922]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (12)
As of 2015-07-28 23:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (260 votes), past polls