自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(27)
  • 收藏
  • 关注

转载 Keras笔记

model.predict() 和model.predict_classes()----------在predict时MinMaxScaler(feature_range=(0,1))--------预处理数据转载于:https://www.cnblogs.com/yizhaoAI/p/11441199.html

2019-09-01 00:34:00 144

转载 Spectral Clustering 并用silhouette指标值确定最优聚类数目

clusterDatathon.py 说明:输入:(dataExample)处理:选择一系列的cluster数目,进行spectral clustering(经过比较,感觉spectral clustering可能效果好一点),通过silhouette指标值确定最优聚类数目输出:代码如下: 1 import pandas as ...

2019-02-19 11:08:00 658

转载 Java Swing, paint(), paintComponent(), repaint()

在java的小游戏编程中,如果主人公移动,或者组件之间发生碰撞,等,需要重绘界面。如果是用awt的canvas, 常用的策略是:增加一个BufferedStrategy对象, 然后再调用canvas对象的createBufferedStrategy()等。在Swing中,比较好用的方法是:paintComponent()加上repaint(),不用paint()的原因是:Ac...

2018-11-23 01:23:00 645

转载 tensorflow(一):安装在Spyder上

参考:https://www.tensorflow.org/install/install_windows?hl=zh-cn最简单的是,安装在anaconda上。一 anaconda设置把python版本改成3.5或3.6二 anaconda上安装tensorflow 环境1 运行anaconda prompt2 创造环境C:> conda ...

2018-11-16 04:11:00 754

转载 人工智能入门(七):artificial neural network

1.Multilayer feedforward networks and backpropagation2.Training of feedforward neural networks3.Generalization4. Bayesian learning of neural networks5. Recurrent neural networks6. Unsupervised le...

2018-11-12 10:19:00 478

转载 人工智能入门(六):SVM

MLPs Vs. SVM,QP problem,geometrical interpretation, primal space,dual space,fi-function,slack variance(L1,L2;origal,LS SVM),linear kernel,RBF kernel(Gaussian),VC dimension,LS SVM :Fisher, sparse...

2018-11-12 10:11:00 108

转载 人工智能入门(五):data mining的一些算法

1.association rule mining: brief apriori,FP Tree等;recommanding:content based filtering,collaborative filtering,hybrid2.clustering:BIRCH,CURE,k-means,model based, EM clustering;classifying: L...

2018-11-12 09:57:00 176

转载 人工智能入门(四):uncertainty&基于统计的学习

1.belief networks (indenpendence, collider,conditioning / marginalization,connection graph,independence in belief networks,D-separation,uncertain and unreliable evidence)Belief and Markov Network...

2018-11-12 09:34:00 320

转载 人工智能入门(三):机器学习问题的基本类型

1:concept learning:version space,decision tree等;2:rule learning:If-then rules, association rules,genetic programming等;3. instance-based learning(k-means, knn),clustering等;4:numerical appro...

2018-11-10 01:25:00 74

转载 人工智能入门(二):语音识别基本模型

spectral analysis和formants,倒频谱,mel谱等feature有关;training和recognition涉及到:基础的(DWT,HMM,Viterbi等);高阶的(deep learning等)。转载于:https://www.cnblogs.com/yizhaoAI/p/9937851.html...

2018-11-10 00:58:00 471

转载 人工智能入门(一):Fundamentals of Artificial Intelligence

参考教材:https://people.cs.kuleuven.be/~danny.deschreye/FAI/在FAI的introduction课中,有一个很基本的目标是:实现一个可以通过图灵测试的chatbox。主要知识点涉及:1.搜索算法:包括basic search(blind,heuristic),advanced search(比如A*算法等);2.games...

2018-11-10 00:00:00 359

转载 不同package 的class的成员(field或者method)之间的访问

import package名称.class名称;访问静态变量或方法: class名.变量名;class名.方法名(args);访问非静态变量或方法:实例化,基于对象访问;Class obj=new Class();obj.变量名obj.方法名在同一个package内,基本上可以了(只要修饰符是public,protected,no modifier);...

2018-11-06 21:14:00 127

转载 Java小程序Dance with the stars(一):开始界面

用swing做了一个游戏初始界面。效果如下:代码为: 1 import javax.swing.*; 2 import java.awt.*; 3 import java.util.*; 4 5 public class StartWindow { 6 7 public static void main(String[] args) {...

2018-11-05 20:48:00 126

转载 stringbuffer.append(args) args可以多类型

Useappend(String str)API method of StringBuffer. This method appends the specified string to this character sequence.The method can also be used to append aboolean, achar, achar array, a...

2018-11-02 17:43:00 132

转载 在java中如何表示pairs。map要求key是不重复的

Java 9+In Java 9, you can simply write:Map.entry(key, value)to create an immutable pair.Note:this method does not allow keys or values to be null. If you want to allow null values, for exa...

2018-11-02 00:30:00 445

转载 forEach java8 输出list set更简单

names.forEach(System.out::println);转载于:https://www.cnblogs.com/yizhaoAI/p/9892898.html

2018-11-01 22:06:00 244

转载 Java的map

基本类型数据,直接用map.put(k,v)修改数据即可hashMap无序,treeMap按key值的大小排序。输出:Iterate over the entrySet rather than the keySet. You get a set ofMap.Entry<K, V>which have convenientge...

2018-11-01 20:35:00 74

转载 解决non-static method appleShare(int,int) cannot be referenced from a static context的两种方法...

import java.util.*;public class Main{ public static void main(String[] args){ //增加一個實例 Main obj=new Main(); Scanner sc=new Scanner(System.in); while(sc....

2018-10-20 23:18:00 1133

转载 Scanner简单入门

关于Scanner,看到一个不错的教程。原网址:https://www.cs.utexas.edu/users/ndale/Scanner.htmlScanner classThe Scanner class is a classin java.util, which allows the user to read values of various types. Ther...

2018-10-20 17:58:00 169

转载 pandas读csv数据 并显示前几行

转载于:https://www.cnblogs.com/yizhaoAI/p/8935880.html

2018-04-25 02:38:00 5930

转载 Conputer Vision-边缘检测-OpenCV实践

1.知识原理,摘录自https://opencv-python-tutroals.readthedocs.io/en/latest/py_tutorials/py_imgproc/py_canny/py_canny.htmlCanny Edge DetectionGoalIn this chapter, we will learn aboutConcept ...

2018-03-27 05:41:00 174

转载 attributeError: 'NoneType' object has no attribute 'shape' 报错

在最初的代码中, #read an image img = cv2.imread('image.jpg') #print the dimension of the image print img.shape可能是因为没有设置路径,所以返回的类型是None。改正的方法是,读取图片时把路径也写上#Try chang...

2018-03-22 04:47:00 801

转载 开灯问题--------《算法竞赛入门指导》P83

开灯问题。有n盏灯,编号为1~n。第1个人把所有灯打开,第2个人按下所有编号为2的倍数的开关(这些灯将被关掉),第3个人按下所有编号为3的倍数的开关(其中关掉的灯将被打开,开着的灯将被关闭),依此类推。一共有k个人,问最后有哪些灯开着?输入n和k,输出开着的灯的编号。k≤n≤1000。样例输入:7 3样例输出:1 5 6 7我的代码为#include<iost...

2017-06-20 00:33:00 94

转载 《算法竞赛入门指导》Ch2的思考题2

题目2。下面的程序运行结果是什么?“!=”运算符表示“不相等”。提示:请上机实验,不要凭主观感觉回答。#include<stdio.h>int main(){double i;for(i = 0; i != 10; i += 0.1)printf("%.1f\n", i);return 0;}事实上,这个算法会一直滚下去,就想死循环。原来是因为It is ...

2017-06-19 01:07:00 192

转载 算法竞赛输入输出!!!

摘录自《算法竞赛入门指导》P68上面的程序并不是很方便:每次测试都要手动输入许多数。尽管可以用前面讲的管道的方法,但数据只是保存在命令行中,仍然不够方便。一个好的方法是用文件——把输入数据保存在文件中,输出数据也保存在文件中。这样,只要事先把输入数据保存在文件中,就不必每次重新输入了;数据输出在文件中也避免了“输出太多,一卷屏前面的就看不见了”这样的尴尬,运行结束后,慢慢浏览输出文件...

2017-06-18 00:10:00 258

转载 关于算法运行时间以及“管道”为什么引入

1. 关于算法运行时间以及“管道”为什么引入。我以前毕设比较不同译码算法的时候,直接用一个clock()来比较不同算法运行速率。现在想起来,这是及其错误了!《算法竞赛入门经典》P64一个程序中计时函数clock()的使用。该函数返回程序目前为止运行的时间。这样,在程序结束之前调用此函数,便可获得整个程序的运行时间。这个时间除以常数CLOCKS_PER_SEC之后得...

2017-06-17 23:59:00 111

转载 读bitcoin_pdf摘录及笔记_unfinished

In this paper, we propose a solution to the double-spending problem using a peer-to-peer distributed timestamp server to generate computational proof of the chronological order of transactions....

2017-06-17 00:33:00 212

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除