9、下面是对数据进行二值化处理的python程序 from sklearn.preprocessing import Binarizer data = [[0, 0], [50, 0], [100, 1], [80, 1]] print (Binarizer(threshold=60).fit_transform(data)) 则print语句的输出结果为A.[[0 0] [0 0] [1 1] [0 1]]B.[[1 0] [1 0] [0 1] [1 1]]C.[[0 0] [0 0] [0 0] [0 0]]D.[[0 0] [0 0] [1 0] [1 0]]

9、下面是对数据进行二值化处理的python程序 from sklearn.preprocessing import Binarizer data = [[0, 0], [50, 0], [100, 1], [80, 1]] print (Binarizer(threshold=60).fit_transform(data)) 则print语句的输出结果为

A.[[0 0] [0 0] [1 1] [0 1]]

B.[[1 0] [1 0] [0 1] [1 1]]

C.[[0 0] [0 0] [0 0] [0 0]]

D.[[0 0] [0 0] [1 0] [1 0]]


参考答案和解析
A

相关考题:

下列程序的输出结果为012,请根据注释将横线处的缺失部分补充完整。 include using name 下列程序的输出结果为012,请根据注释将横线处的缺失部分补充完整。include<iostream>using namespace std;class Test{public:Test(int A) {data=a;}~Test(){}void print(){cout<<data;)private:int data;};int main(){Test t[3]={______};//对有3个元素的Test类对象数组t初始化for(int i=0; i<3; i++) t[i]. print();return 0;}

下列程序段的执行结果为a=2b=0Select Case aCase 1Select Case bCase 0Print "**0**"Case 1Print "**1**"End SelectCase 2Print "**2**"End Select( )。A.**0**B.**1**C.**2**D.0

下面程序实现十进制向其他进制的转换。[Java程序]C1ass Node{int data;Node next;}class Transform{private Node top;publiC void print(){Node P;while(top !=null){P=top;if(P.data>9)System.out.print((char)(p.data+55));elseSystem.out.print(p.data);top=P.next;}}public void Trans(int d,int i)(//d为数字;i为进制int m;(1) n=false;Node P;while(d>0){(2) ;d=d/i;P=flew Node();if( (3) ){P.data=m;(4) ;top=P;n=true;}else{p.data=m;(5) ;toP=P;}}}}

下列程序段的执行结果为m=1n=1Select Case mCase 1Select Case nCase 0Print "**0**"Case 1Print "**1**"End SelectCase 2Print "**2**"End Select( )。A.**0**B.**1**C.**2**D.0

下列程序段的执行结果为a=1b=0Select Case aCase 1Select Case bCase 0Print "* *0* *"Case 1Print "* *1* *"End SelectCase 2Print "* *2* *"End Select ( )。A.* *0* *B.* * 1* *C.* *2* *D.0

语句Print 5/4*6\5 Mod 2的输出结果是( )。A.0B.1C.2D.3

下列程序段的执行结果为 ______。 K=0 For I=1 To 3 A=I^I^K Print A; Next IA.1 1 1B.1 4 9C.0 0 0D.1 2 3

语句:print 5*5\5/5输出结果是( )A.5B.25C.0D.1

下列程序段的输出结果是( )。A=0Print A+1A=3A.1B.-1C.3D.0

下列程序段的执行结果是( )。 a = 1: b = 0 Select Case a Case 1 Select Case b Case 0 Print "**0**" Case 1 Print "**1**" End Select Case 2 Print "**2**" End Select A. **0**B. **1**C. **2**D. 0

哪个选项是下面代码的执行结果()s='PYTHON'print("{0:3}".format(s)) A、PYTHONB、PYTC、PYTHD、PYTHON

请完成Java程序:本题是一个冒泡排序程序的实例。冒泡排序的含义是将相邻的两个数作比较,如果是升序排列的话,如果前边的数大,则将两个数交换。从第一个数开始两两比较一次,就可以将最大的数移动到最后。注意:请勿修改main()主方法和其他已有语句内容,仅在横线处填入适当语句。import java.io.*;public class simple{public static int[]Data=new int[10];public static void main(String[] args)int i;int Index;Index=0;InputStreamReader ir;BufferedReader in;ir=new InputStreamReader(System.in);in=new BufferedReader(ir);try{do{System.out.println("Please input the number"+Index+"you want to sort(Exit for 0):");String s=in.readLine();Data[Index]=Integer.parseInt(s);Index++;}while(Data[Index-1]!=0);}catch(IOException e){System.out.println(e.getMessage());}System.out.print("Before bubble sorting:");for(i=0; i<Index-1; i++)System.out.print(" "+Data[i]+" ");System.out.println(" ");BubbleSort(Index-1);System.out.print("After Bubble Sorting:");for(i=0; i<Index-1;i++)System.out.print(" "+Data[i]+" ");System.out.println(" ");}public static void BubbleSort(int Index){int i, j, k;boolean Change;int Temp;for(j=Index; j>1;j--){Change=false;for(i=0; i<j-1;i++){if(Data[i+1]<Data[i]){Temp=Data[i+1];Data[i+1]=Data[i];______;______;}}if(Change){System.out.print("Current Sorting Result:");for(k=0; k<Index; k++)System.out.print(" "+Data[k]+" ");System.out.println(" ");}}}}

下列程序段的执行结果为 a=2 b=0 Select Case a Case 1 Select Case b Case 0 Print " * * 0 * *" Case 1 Print" * * 1 * *" End selec Case 2 Print " * * 2 * *" End SelectA.* * 0 * *B.* * 1 * *C.* * 2 * *D.0

下列程序的输出结果是【】。 include using namespace std; class A {int a; public:A() 下列程序的输出结果是【 】。include <iostream>using namespace std;class A {int a;public:A():a(9){}virtual void print() const { cout<<a;};};class B: public A {char b;public:B( ){b='S';}void print() const {cout<<b;}};void show(A x){ x.print0;}int main(){ Ad1,*p;B d2;p=d2;d1.print();d2.print0;p->print();show(d1);show(d2);return 0;}

运行下面的程序后,输出的结果为 Cls Dim t(5, 5) as Integer For i=1 To 5: t(i,i) =1: Next For i = 1 To 5 For j = 1 To 5 Print t(i, j), Next Print NextA.1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1B.1 1 1 1 1C.1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1D.1 1 1 1 1

运行下面的程序后,输出的结果为 Cls Dim t(5,5)as Integer For i=1 To 5:t(i,i)=1:Next For i=1 To 5 For j=1 To 5 Print t(i,j), Next Print NextA. 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1B.1 1 1 1 1C.1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1D.1 1 1 1 1

下面程序段的输出结果是 int data=0; char k='a',p='f': data=p-k; system.out.println(data);A.0B.aC.fD.5

下列程序段的执行结果为 m=1 n=1 Select Case m Case 1 Select Case n Case 0 Print" * * 0 * *" Case 1 Print" * *1* *" End Select Case 2 Print" * * 2 * *" End SelectA.**0**B.**1**C.**2**D.0

下面程序运行后输出结果是( )。 For I=1 to 2 S=1 For j=0 to I-1 S=S+S*I Next j Print S Next IA.1 1B.0 2C.2 9D.6 9

运行下面的程序后,输出的结果为 Cls Dim t(5,5) as Integer For i=1 To 5:t(i,i)=1:Next For i=1 To 5 For j=1 To 5 Print t(i,j), Next j Print Next IA.1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 l 1 1 1 1 1 1B.1 1 l 1 1C.1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1D.1 1 1 1 1

下列程序段的输出结果为( )。 A=0 Print A+I A=3A.1B.-1C.3D.0

下列程序段的执行结果为a=1b=0Select Case a Case 1 Select Case b Case 0 Print"**0**" Case 1 Print"**1**" End SelectCase 2 Print"**2**"End SelectA.* * 0 * *B.* * 1 * *C.* * 2 * *D.0

下列程序段的执行结果为 m=1 n=1 Select Case m Case 1 Select Case n Case 0 Print" * * 0 * *" Case 1 Print" * *.* *" End Select Case 2 Print"* *,2 * *," End SelectA.* * 0 * *B.* * 1 * *C.* * 2 * *D.0

for i in range(0,2):print (i)上述程序的输出结果是: A.0 1 2B.1 2C.0 1D.1

下列程序段的输出结果为( )。 A=0 Print A+1 A=3A.1B.-1C.3D.0

以下程序的执行结果为()。includeclass myClass{Dublic:myClass(intdata) ;myClass( 以下程序的执行结果为( )。 #include<iostream.h> class myClass { Dublic: myClass(int data) ; myClass(){value=0; }; myClass(myClass obj); void print(){ cout<<value<<end1; } ~myClass(){} private: int value; }; myClass::myClass(int data) {value=data; } myClass::myClass(myClass Obj) { value=obj.value; } void main() { myClass a(100); myClass b(a) ; b.print(); }A.0B.100C.10D.程序编译时出错

语句Print 5*5/5/5的输出结果是()。A5B25C0D1

Python3.x语句print(1,2,3,sep=’:’)的输出结果为()。