码迷,mamicode.com
首页 >  
搜索关键字:exercise 1-3    ( 479个结果
C - The C Answer (2nd Edition) - Exercise 1-10
/* Write a program to copy its input to its output, replacing each tab by \t, each backspace by \b, and each backslash by \\. This makes tabs and backspaces visible in an unambiguous way. */ #inclu...
分类:其他好文   时间:2015-07-12 20:25:20    阅读次数:93
C - The C Answer (2nd Edition) - Exercise 1-6
/* Verify that the expression getchar() != EOF is 0 or 1. */ #include main() { int c; while(c = getchar() != EOF) { printf("%d\n", c); } printf("%d - at EOF\n", c); }...
分类:其他好文   时间:2015-07-12 19:02:18    阅读次数:145
C - The C Answer (2nd Edition) - Exercise 1-5
/* Modify the temperature conversion program to print the table in reverse order, that is, from 300 degrees to 0. */ #include /* print Fahrenheit-Celsius table in reverse order */ main() { int...
分类:其他好文   时间:2015-07-11 20:16:44    阅读次数:164
C - The C Answer (2nd Edition) - Exercise 1-4
/* Write a program to print the corresponding Celsius to Fahrenheit table. */ #include /* print Celsius-Fahrenheit table for celsius = 0, 20, ..., 300; floating-point version */ main() { float...
分类:其他好文   时间:2015-07-11 20:14:23    阅读次数:176
C - The C Answer (2nd Edition) - Exercise 1-1
/* Run the "hello, world" program on your system. Experiment with leaving out parts of the program to see what error messages you get. */ #include main() { printf("hello world\n"); }...
分类:其他好文   时间:2015-07-11 18:31:13    阅读次数:107
C - The C Answer (2nd Edition) - Exercise 1-2
/* Experiment to find out what happens when printf's argument string contains \c, where c is some character not listed above. */ #include main() { printf("hello world\y"); printf("hello wor...
分类:其他好文   时间:2015-07-11 18:27:26    阅读次数:137
C - The C Answer (2nd Edition) - Exercise 1-3
/* Modify the temperature conversion program to print a heading above the table. */ #include /* print fahrenheit-Celsius table for fahr = 0, 20, ..., 300; floating-point version */ main() { fl...
分类:其他好文   时间:2015-07-11 18:26:47    阅读次数:147
MachineLearning Exercise 7 : K-means Clustering and Principle Component Analysis
findClosestCentroids.mm = size(X,1);for i=1:m [value index] = min(sum((repmat(X(i,:),K,1)-centroids).^2,2)); idx(i) = index;endcomputeCentroids....
分类:系统相关   时间:2015-07-07 00:46:23    阅读次数:231
logistc regression练习(三)
% Exercise 4 -- Logistic Regressionclear all; close all; clcx = load('E:\workstation\data\ex4x.dat'); y = load('E:\workstation\data\ex4y.dat');[m, n] ...
分类:其他好文   时间:2015-06-27 21:10:12    阅读次数:301
[Exercise]用softmax Regression测试MNIST数据集
MNIST是一套对手写数字进行识别的数据集:http://yann.lecun.com/exdb/mnist/MNIST的数据结构官网上已给出,挺奇葩的-.-,所以第一件事是把数据整理出来我写了个脚本帮我整理,输出的是一坨文本文件,【其中image是用灰度矩阵表示,每个像素1字节,每张图28x28 ...
分类:其他好文   时间:2015-06-21 18:29:51    阅读次数:169
479条   上一页 1 ... 30 31 32 33 34 ... 48 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!