Skip to content

NeuralNet interface #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 22, 2018

Conversation

denravonska
Copy link

@denravonska denravonska commented Dec 22, 2018

This is the first draft for using interfaces and a factory for the NeuralNet. This should allow us to easily write a third implementation which uses the new scraper code, and conditionally instantiate it in NN::CreateNeuralNet() based on the user's configuration flags.

I have not tested this in Windows yet.

Needs to be test built for Windows.
}

INeuralNetPtr NN::CreateNeuralNet()
{
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With the new scraper NN the body will look something like this:

if(new scraper enabled)
   return NewScraperNN

// Fallback to default implementations
#ifdef WIN32
 return Win32NN
#else
 return StubNN
#endif

The ifdef is still needed since the Win32 NN calls Qt. We can get around this by injecting a DotNetExecutor or Bridge object which does the actual call. If you instantiate from Qt it will inject a QAxObject capable executor, otherwise it injects a dummy executor. That will also allow us to stop making NN implementation selections at compile time.

@jamescowens
Copy link
Owner

I am going ahead and merging this.

@jamescowens jamescowens merged commit 45c9018 into jamescowens:integrated_scraper Dec 22, 2018
jamescowens pushed a commit that referenced this pull request Jan 6, 2019
Populate testnet bad claim block list and wire in
jamescowens pushed a commit that referenced this pull request Nov 21, 2019
Close LevelDB before installing a snapshot
jamescowens added a commit that referenced this pull request Jun 24, 2022
This replaces the temporary MRC request contract icon with the
winner of the icon poll on mainnet. See

https://www.reddit.com/r/gridcoin/comments/v3suih/mrc_icon_poll/

The poll id is

4e3e06e88c5315eff95365a40d3a12d7dbd14205dc775c645c9f8b9dd2e99dc9

The winning icon is #7.

Many thanks to m3prx for contributing the winning icon! :)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants