请参考第七讲给出的leNet5卷积网络代码,使用Cifar-10数据集训练模型,实现彩色图像识别。 Cifar-10数据集包含了airlane、automobile、bird、cat、deer、dog、frog、horse、ship、truck,10种分类,共60000张图片,其中训练集50000张,测试集10000张。请使用lenet5卷积网络,训练模型参数,提升模型识别准确率。 作业需要提交神经网络源码和ckpt模型。(代码须有注释) 附cifar-10数据集:链接:https://pan.baidu.com/s/1RhL0aVNo-5atLKT4gOKpBw 密码:64zs
第1题
第2题
1)String str=null;
2)if ((str !=null) && (str.length() >10)) {
3)System.out.println("more than 10");
4)}
5)else if ((str !=null) & (str.length() <5)) {
6)system.out.println("less than 5");
7)}
8)else ( system.out.println("end"); }
第______行将导致错误.
A.1 B.2
C.5 D.8
第3题
public class Test {
public static void main(String[ ] args) {
int[][] array = {{1, 2, 3, 4},{5, 6, 7, 8}};
System.out.println(m1(array)[1])
}
public static int[] m1(int[][] m){
int[] result = new int[2];
result[0] = m.length;
result[1] = m[0].length;
return result;
}
}
A、0
B、1
C、2
D、4
第4题
A、line 3
B、line 5
C、line 6
D、line 10
第5题
1)public Void modify() {
2)int i, j, k;
3)i=100;
4)while ( i>0 ) {
5)j=i*2;
6)System.out.println ("The value of j is"+j );
7)k=k+ 1;
8)i--;
9)}
10)}
第______行在编译时可能产生错误。
A.4 B.6
C.7 D.8
第6题
programmain(input,output)
proceduref(a,b)
begin
a:=a+5;
b:=a*10-b;
end;
begin
x:=20;y:=10;
f(y,x);
print(x,y);
end.
第7题
第8题
1)public class Test {
2)int m, n;
3)public Test() ()
4)public Test(int a) {m=a; }
5)public static void main(string arg[]) {
6)Test t1,t2;
7)int j,k;
8)j=O; k=0;
9)t1=rlew Test();
10)t2=new Test(j,k);
11)}
12)}
在编译时行将导致一个错误。
A.3 B.5 C.6 D.10
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!