forked from jottinger/ci-bayes
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing gigaspaces object registration. Very annoying, but makes sense.
- Loading branch information
U-hp-dv73165dx\joeo
committed
Dec 23, 2010
1 parent
7329b14
commit fb90d5e
Showing
26 changed files
with
273 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
ci-bayes/src/test/java/com/enigmastation/neuralnet/DZoneTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package com.enigmastation.neuralnet; | ||
|
||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.test.context.ContextConfiguration; | ||
import org.springframework.test.context.testng.AbstractTestNGSpringContextTests; | ||
import org.testng.annotations.Test; | ||
|
||
import static org.testng.Assert.assertNotNull; | ||
|
||
/** | ||
* User: joeo | ||
* Date: 12/15/10 | ||
* Time: 12:17 PM | ||
* <p/> | ||
* Copyright | ||
*/ | ||
@ContextConfiguration(locations = {"/ci-bayes-context.xml"}) | ||
public class DZoneTest extends AbstractTestNGSpringContextTests { | ||
@Autowired | ||
NeuralNetwork network; | ||
|
||
@Test | ||
public void testConfig() { | ||
assertNotNull(network); | ||
} | ||
|
||
@Test | ||
public void testTrain() { | ||
network.train("cats. Cats are nice. They're feline animals who excel as they hunt vermin.", "t00001"); | ||
network.train("dogs. Dogs are canine and related to wolves. They dislike cats, usually.", "t00002"); | ||
for(Object o:network.getOutputs("cats are nice")) { | ||
System.out.println(o); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
gigaspaces-dao/src/main/java/com/enigmastation/dao/model/Category.gs.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE gigaspaces-mapping PUBLIC "-//GIGASPACES//DTD GS//EN" | ||
"http://www.gigaspaces.com/dtd/7_1/gigaspaces-metadata.dtd"> | ||
<gigaspaces-mapping> | ||
<class name="com.enigmastation.dao.model.Category" replicate="true" persist="true"> | ||
<property name="category"/> | ||
<property name="count"/> | ||
</class> | ||
</gigaspaces-mapping> |
10 changes: 10 additions & 0 deletions
10
gigaspaces-dao/src/main/java/com/enigmastation/dao/model/Feature.gs.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE gigaspaces-mapping PUBLIC "-//GIGASPACES//DTD GS//EN" | ||
"http://www.gigaspaces.com/dtd/7_1/gigaspaces-metadata.dtd"> | ||
<gigaspaces-mapping> | ||
<class name="com.enigmastation.dao.model.Feature" replicate="true" persist="true"> | ||
<property name="category"/> | ||
<property name="feature"/> | ||
<property name="count"/> | ||
</class> | ||
</gigaspaces-mapping> |
9 changes: 9 additions & 0 deletions
9
gigaspaces-dao/src/main/java/com/enigmastation/dao/model/Neuron.gs.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE gigaspaces-mapping PUBLIC "-//GIGASPACES//DTD GS//EN" | ||
"http://www.gigaspaces.com/dtd/7_1/gigaspaces-metadata.dtd"> | ||
<gigaspaces-mapping> | ||
<class name="com.enigmastation.dao.model.Neuron" replicate="true" persist="true"> | ||
<property name="payload"/> | ||
<property name="visibility"/> | ||
</class> | ||
</gigaspaces-mapping> |
Oops, something went wrong.