http://blog.csdn.net/xyz0330/article/details/39639723
java源程序中package设置不当会导致无法运行class文件的错误
1. 在java源文件开头没有包声明语句 package your_package;D:\jtest> javac J_Hello.java
D:\jtest> java J_Hello
Hello, the Java world!
2. 在java源文件开头有包声明语句 package your_package;
D:\jtest>javac J_Hello1.java
D:\jtest>java J_Hello1
Error: Could not find or load main class J_Hello1
错误原因:
编译含有包声明语句的java源程序文件的格式是:
javac -d your_path your_class.java
此命令能在 your_path/your_package/ 下生成 your_class.class。
上面的命令中没有-d选项,javac会在当前目录下生成J_Hello1.class(没有报错)。
但是执行java命令,会因为找不到class而出错。
解决方法:
1. 在当前目录下手工创建com/mypkg/test目录,将移动J_Hello1.class到该目录下。
2. 用 javac -d . J_Hello1.java 编译,将直接生成./com/mypkg/test/J_Hello1.class。
D:\jtest>javac -d . J_Hello1.java
D:\jtest>Java com.mypkg.test.J_Hello1
Hello, the Java world!
以下是实例程序:
机器学习(凑数)
What is Machine Learning?
Example: playing checkers.
E = the experience of playing many games of checkers
T = the task of playing checkers.
P = the probability that the program will win the next game.
监督式学习:
"regression"
"classification"
attributes:
Unsupervised Learning:
Clustering: Take a collection of 1,000,000 different genes, and find a way to automatically group these genes into groups that are somehow similar or related by different variables, such as lifespan, location, roles, and so on.
Non-clustering: The "Cocktail Party Algorithm", allows you to find structure in a chaotic environment. (i.e. identifying individual voices and music from a mesh of sounds at a cocktail party).