Boost logo

Boost :

Subject: Re: [boost] [Root Pointer] Ultimate test - Neural Network
From: Phil Bouchard (philippeb8_at_[hidden])
Date: 2016-03-20 20:49:57


On 03/20/2016 01:35 PM, Phil Bouchard wrote:
>
> It's really fun to program with.
>
> Here I am returning complex r-values recursively and it works fine:
> https://github.com/philippeb8/root_ptr/blob/master/example/t100.h#L152

I've cleaned up the example again and now a simple:

     cout << "Mind dump:" << endl;
     cout << * t100 << endl;

     cout << "Searching for: \"einstein\"" << endl;
     if (node_ptr<neuron_base> p = t100->search("einstein"))
         cout << p->sort().unique() << endl;

     cout << "Searching for: \"graviton\"" << endl;
     if (node_ptr<neuron_base> p = t100->search("graviton"))
         cout << p->sort().unique() << endl;

Will dump you the atomic sentence fragments related to your search.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk