chrinide / yooreeka Goto Github PK
View Code? Open in Web Editor NEWA library for data mining, machine learning, soft computing, and mathematical analysis
A library for data mining, machine learning, soft computing, and mathematical analysis
------------------------------------------------------------------------------ Quick start for running book examples on Windows platform ------------------------------------------------------------------------------ ______________________________________________________________________________ 1. Verify your environment 1.1. Make sure that you've placed all distribution files under a directory on your filesystem, say, "C:\code\yooreeka" on a Windows OS or /code/yooreeka on a Linux OS. You can call that directory whatever you want. 1.2 Set the property yooreeka.home in the yooreeka.properties file, so that it points to the installation directory mentioned above. Make sure the rest of the properties are consistently pointing to the appropriate locations. 1.3. Start windows command line interpreter (cmd.exe) and confirm that you can run java and ant from the command line on your system. Within a Windows command prompt, execute the following: java -version ant -version If you get an error see step 2. Otherwise skip to step 3. ______________________________________________________________________________ 2. Configure your Java and Ant environment variables You can skip this step, if you already have JDK and Ant configured on your system to run from command line. Assuming that java jdk is in C:\jdk1.7.0_10 and Ant is in C:\apache-ant-1.7.0 use the following commands: SET JAVA_HOME=C:\jdk1.7.0_10 SET ANT_HOME=C:\apache-ant-1.7.0 SET PATH=%JAVA_HOME%\bin;%ANT_HOME%\bin;%PATH% SET JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8 If your JDK or Ant are installed elsewhere, please, change the above values accordingly. The JAVA_TOOL_OPTIONS ensures that files containing UTF-8 characters will not cause the build to fail. Details about this environment variable can be found here: http://docs.oracle.com/javase/7/docs/platform/jvmti/jvmti.html#tooloptions At this point you should be able to run java and ant from command line without errors. If you've only configured environment for your current command line interpreter make sure that you perform steps 3 and 4 in the same instance of interpreter. ______________________________________________________________________________ 3. Reset your CLASSPATH environment variable Type the following command in your command prompt: SET CLASSPATH= This command empties your classpath, which is required for the rest of the process to work. In other words, we assume a clean slate for the CLASSPATH environment variable. ______________________________________________________________________________ 4. Run ant build file for the project: Within the same command prompt execute the following two commands: cd /D C:\code\yooreeka\build ant Ant will execute the default target from the C:\iWeb2\build\build.xml build file. It will build all source code and will prepare the 'C:\code\yooreeka\deploy' directory. ______________________________________________________________________________ 5. Start the BeanShell Within the same command prompt execute: C:\code\yooreeka\deploy\bin\bsc.bat ______________________________________________________________________________ You are ready to run book examples!!! Note: Within the BeanShell you will have command history. So, if you typed something and you would like to repeat it the command with different argument values or type something else similar to the previous command, you can use the UP / DOWN arrows to move up and down the history of the BeanShell commands, respectively. Enjoy! ______________________________________________________________________________
I am trying to determine which version of the LGPL applies to this code. I
hope it is not LGPL V3 because that effectively makes the code and it's
concepts unusable for anybody trying to use it in my (and most) biz
environment.
-Rick
Original issue reported on code.google.com by [email protected]
on 3 Jun 2010 at 9:00
What steps will reproduce the problem?
1. public static Properties readProperties(String resourceName), there is a
props in function and there is a props in class too.
2. if we can not do this props.load(inStream);function will do
setStaticProperties();
3. setStaticProperties() will change the props of class ,but return the props
of function .
4 so actual the the props of class will be null.
What is the expected output? What do you see instead?
don't do this " props =readProperties(resourceName)"
What version of the product are you using? On what operating system?
version 2.0
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 17 Apr 2013 at 2:32
What steps will reproduce the problem?
1. installing Java in the default folder on Windows
2. running bsc.bat
What is the expected output? What do you see instead?
an error is thrown cause the default path to JAVA_HOME has a space in "Program
Files"
What version of the product are you using? On what operating system?
the latest download; on Windows 7
Please provide any additional information below.
adding double quotes around %JAVA_HOME% (i.e. "%JAVA_HOME%") fixes the problem
Original issue reported on code.google.com by [email protected]
on 16 Jan 2011 at 7:01
I have translated the scripts under Beanshell-Notes into jython and adapted the
infrastructure you
have created for beanshell to jython. The onlu thing you need to make the code
work is to add
jython.jar (you can get it from http://jython.org) to your classpath.
Thanks for the book and code.
Juan Manuel
Original issue reported on code.google.com by [email protected]
on 20 Jun 2009 at 9:37
Attachments:
In NaiveBayes:
public double getProbability(Instance i, Concept c) {
double cP = 1;
for (Attribute a : i.getAttributes()) {
if (a != null && attributeList.contains(a.getName())) {
Map<Attribute, AttributeValue> aMap = p.get(c);
AttributeValue aV = aMap.get(a);
if (aV == null) {
// the specific attribute value is not present for the
// current concept.
// Can you justify the following estimate?
// Can you think of a better choice?
cP *= ((double) 1 / (tSet.getSize() + 1));
} else {
cP *= (aV.getCount() / conceptPriors.get(c));
}
}
}
return (cP == 1) ? (double) 1 / tSet.getNumberOfConcepts() : cP;
}
Here we calculate the P(a|C) :
P(a|C) = (aV.getCount() / conceptPriors.get(c)); conceptPriors.get(c) is all
instances in concept C.
My quesition is should we do it like this: P(a|C) = aV.getCount() / (all words
count in C) ??
Original issue reported on code.google.com by [email protected]
on 26 Dec 2013 at 9:37
What steps will reproduce the problem?
1. Just try to run any example
2.
3.
What is the expected output? What do you see instead?
You have not configured the beanshell scripts properly. The examples on the
book assume you have imported all the libs on beanshell, which turns to be
a fucking nightmare trying to run your examples.
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 18 Mar 2009 at 2:15
What steps will reproduce the problem?
1. Follow the installation instructions
2. step 1 to step 3 ok
3. step 4 fails
What is the expected output? What do you see instead?
the output i get is:
BUILD FAILED
C:\iWeb2\build\build.xml:105: You have CLASSPATH set in your environment.
This may cause issues while running build.
What version of the product are you using? On what operating system?
I am using yooreeka20090517
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 24 Apr 2010 at 11:49
What steps will reproduce the problem?
1. Download the latest jar
2. Set CLASSPATH to include jar
3. run bsh Console
4. Try to create a simple String
5. Fail
What is the expected output? What do you see instead?
I was actually expecting no output from creating a String. What I see instead
is Error: Parser Error (See attached image)
What version of the product are you using? On what operating system?
Linux Mint 14
Please provide any additional information below.
See attached image
Original issue reported on code.google.com by [email protected]
on 31 Mar 2013 at 6:30
Attachments:
What steps will reproduce the problem?
1. simply starting the beanshell
What is the expected output? What do you see instead?
C:\iWeb2\deploy\bin>bsc.bat
C:\iWeb2\deploy\bin>echo off
---
Path="C:\Program Files\Java\jdk1.6.0_20"\bin;C:\Program
Files\Java\jdk1.6.0_20\bin;C:\apache-ant-1.8.1\bin;C:\Windows\system32;C:\Window
s;C:\Windows\S
ystem32\Wbem;C:\Program Files\CyberLink\Power2Go\;C:\Program
Files\MATLAB\R2009a\bin;C:\Program Files\MATLAB\R2009a\bin\win32;C:\Program
Files\MATLAB\
R2008a\bin;C:\Program Files\MATLAB\R2008a\bin\win32;C:\Program
Files\Perforce\;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program
Files\C
ommon Files\Intuit\QBPOSSDKRuntime;C:\Program
Files\GnuWin32\bin;C:\gwv5;C:\Program Files\Common Files\Roxio
Shared\9.0\DLLShared\;C:\Program Files\Qu
ickTime\QTSystem\;C:\Windows\system32\gs\gs7.05\bin;C:\Program
Files\Graphviz2.26\bin;C:\Program Files\Medsphere\Gtk# Runtime\bin;C:\Program
Files\GNU
\GnuPG\pub;C:\Program Files\Nmap
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
---
CLASSPATH=C:\iWeb2\deploy\lib\bsh-2.0b4.jar;;C:\iWeb2\deploy\lib\commons-codec-1
.3.jar;C:\iWeb2\deploy\lib\commons-httpclient-3.1.jar;C:\iWeb2\deploy\
lib\commons-lang-2.3.jar;C:\iWeb2\deploy\lib\commons-logging-1.1.1.jar;C:\iWeb2\
deploy\lib\f2jutil.jar;C:\iWeb2\deploy\lib\jfreechart.jar;C:\iWeb2\dep
loy\lib\jgraph.jar;C:\iWeb2\deploy\lib\jigg-0.1.jar;C:\iWeb2\deploy\lib\rooster.
jar;C:\iWeb2\deploy\lib\junit-4.1.jar;C:\iWeb2\deploy\lib\lucene-analy
zers-2.3.0.jar;C:\iWeb2\deploy\lib\lucene-core-2.3.0.jar;C:\iWeb2\deploy\lib\luc
ene-demos-2.3.0.jar;C:\iWeb2\deploy\lib\lucene-memory-2.3.0.jar;C:\iWe
b2\deploy\lib\nekohtml.jar;C:\iWeb2\deploy\lib\poi-3.0.2-FINAL-20080204.jar;C:\i
Web2\deploy\lib\resolver.jar;C:\iWeb2\deploy\lib\secondstring-20070327
.jar;C:\iWeb2\deploy\lib\serializer.jar;C:\iWeb2\deploy\lib\SuperCSV-1.16.jar;C:
\iWeb2\deploy\lib\tm-extractors-1.0.jar;C:\iWeb2\deploy\lib\xercesImpl
.jar;C:\iWeb2\deploy\lib\xml-apis.jar;C:\iWeb2\deploy\lib\drools-core-4.0.4.jar;
C:\iWeb2\deploy\lib\drools-compiler-4.0.4.jar;C:\iWeb2\deploy\lib\antl
r-runtime-3.0.jar;C:\iWeb2\deploy\lib\janino-2.5.10.jar;C:\iWeb2\deploy\lib\mvel
14-1.2.21.jar;C:\iWeb2\deploy\lib\iweb2.jar;C:\iWeb2\deploy\conf
---
JAVA_HOME=C:\Program Files\Java\jdk1.6.0_20
---
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
What version of the product are you using? On what operating system?
Yooreeka_20100413 Vista Home Premium
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 6 Aug 2010 at 10:02
What steps will reproduce the problem?
1. Attempt to run the example in listing 2.1 in the book on Mac OS X.
What is the expected output? What do you see instead?
I would expect the example to work, however, there are a few issues present.
What version of the product are you using? On what operating system?
I am using http://yooreeka.googlecode.com/files/yooreeka-20090517.zip on Mac OS
X 10.6.2.
Please provide any additional information below.
I have been able to successfully execute the example, however, a few
modifications were
necessary to the code.
1. The $IWEB2_HOME/deploy/bin/bsc.sh script looks to have been saved with
Windows line
ending (CRLF) instead of the unix line ending character (LF). Running either
dos2unix or the
command:
cat bsc.sh | tr -d '\r' > bsc.sh
should fix the issue.
2. The IWEB2_HOME directory is hardcoded in the bsc.sh script. Alternatively,
this can be
dynamically inferred from within the script like so:
binDir=`dirname $0`
currDir=`pwd`
cd $binDir/../..
IWEB2_HOME=`pwd`
cd $currDir
If this snip is added to the top of the script, thereby replacing the hardcoded
IWEB2_HOME=/home/babis/code/iweb2 line, the script should work and be
executable from any
directory in the shell as well.
3. The iweb2.home system property is not properly determined on Mac OS X. Since
the property
is set in the shell script, it should be safe to just replace the
implementation for
iweb2.util.config.IWeb2Config#getHome() with the following:
public static String getHome() {
return System.getProperty("iweb2.home", "C:/iWeb2");
}
Let me know if you need anything further and thanks again for the book and
associated code.
Original issue reported on code.google.com by [email protected]
on 17 Dec 2009 at 6:53
You have trunk and tags under trunk. This is bad because the google
instructions will cause one to download both trunk and tags when they only
expect to get trunk. It should be fairly easy to move the contents of trunk
and tags to their proper level.
Original issue reported on code.google.com by [email protected]
on 8 Aug 2009 at 1:32
What steps will reproduce the problem?
1. Take any of the ch7 examples from Beanshell and run in Sandbox
2.
3.
What is the expected output? What do you see instead?
All examples use class NewsDataset which does not exist or cannot be found.
Please use labels and text to provide additional information.
Original issue reported on code.google.com by [email protected]
on 24 Nov 2012 at 7:34
What steps will reproduce the problem?
Apply the basic search and index script to a website with relative html
links such as www.simplyadaptive.com
What is the expected output? What do you see instead?
After reading the first page, the crawler fails to fetch the linked pages
on the same site.
Initializing HTTPTransport ...
Failed to fetch document from url: 'http://why_us.html'.
Failed to fetch url: 'http://why_us.html':
Initializing HTTPTransport ...
Failed to fetch document from url: 'http://benefits.html'.
Failed to fetch url: 'http://benefits.html':
Initializing HTTPTransport ...
What version of the product are you using? On what operating system?
latest form svn
Please provide any additional information below.
Shouldn't the crawler know to transform the relative pages into pages on
the same website ?
Original issue reported on code.google.com by e.Adi.Andrei
on 6 Mar 2010 at 12:17
What steps will reproduce the problem?
1. Copy BeanShell-Notes ch2_1 into TestSandbox and run
2.
3.
What is the expected output? What do you see instead?
I see "Exception in thread "main" java.lang.NoClassDefFoundError:
org/cyberneko/html/LostText"
Please use labels and text to provide additional information.
Original issue reported on code.google.com by [email protected]
on 24 Nov 2012 at 5:52
What steps will reproduce the problem?
1. Ant build is successful.
2. run bsc.bat
3.
What is the expected output? What do you see instead?
---
JAVA_HOME=c:\Programs\Java\jdk1.7.0_04
---
Error: Could not find or load main class bsh.Interpreter
What version of the product are you using? On what operating system?
The latest yooreka zip file on Windows 7
Please provide any additional information below.
It looks as if the ant build on iweb2 build completes successfully yet when I
try to run the bsc.bat beanshell from the deploy folder it says that
bsh.Interpreter was not found. How can I fix this problem?
Original issue reported on code.google.com by [email protected]
on 18 May 2012 at 10:35
What steps will reproduce the problem?
1. Run BeanShell script 3.3
2.
3.
What is the expected output? What do you see instead?
Looking for file "C:/code/iWeb2/data/ch03/dataset_script_3.ser"
which does not exist.
Please use labels and text to provide additional information.
Original issue reported on code.google.com by [email protected]
on 24 Nov 2012 at 6:22
What steps will reproduce the problem?
1. Enter BeanShell 3.5 into Sandbox
2. Error will arise on second declaration of ds
3. Remove word "BaseDataset" so ds is simply reused and run
What is the expected output? What do you see instead?
I get "Exception in thread "main" de.thesuntoucher.jigg.JiggException:
java.lang.NullPointerException"
This is a different error than I got from example 2.1 and many others
Please use labels and text to provide additional information.
Original issue reported on code.google.com by [email protected]
on 24 Nov 2012 at 6:34
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.