Answer:
b
Explanation:
First, we need to initialize the classifier.
Then, we are required to train the classifier.
The next step is to predict the target.
And finally, we need to evaluate the classifier model.
You will find different algorithms for solving the classification problem. Some of them are like decision tree classification etc.
However, you need to know how these classifier works. And its explained before:
You need to initialize the classifier at first.
All kinds of classifiers in the scikit-learn make use of the method fit(x,y) for fitting the model or the training for the given training set in level y.
The predict(x) returns the y which is the predicted label.And this is prediction.
For evaluating the classifier model- the score(x,y) gives back the certain score for a mentioned test data x as well as the test label y.
Let assume are lettered A to E in that order. Thus, there
will be 10 potential lines: AB, AC, AD, AE, BC, BD, BE, CD, CE and DE. Each of
these potential lines has 4 possibilities. Therefore, the total number of
topologies is 4¹⁰=1,048,576. 1,048,576. At 100ms <span>it will take 104,857.6 seconds which is slightly above 29 hours to inspect
each and one of them.</span>
Answer:
Study Python’s help on range to determine the names, positions, and what to do with your function’s parameters.
Use a default value of None for the two optional parameters. If these parameters both equal None, then the function has been called with just the stop value. If just the third parameter equals None, then the function has been called with a start value as well. Thus, the first part of the function’s code establishes what the values of the parameters are or should be. The rest of the code uses those values to build a list by counting up or down.
Answer:
Explanation:
import java.util.Scanner;
public class KboatTriangleAngle
{
public static void main(String args[]) {
Scanner in = new Scanner(System.in);
System.out.print("Enter first angle: ");
int a1 = in.nextInt();
System.out.print("Enter second angle: ");
int a2 = in.nextInt();
System.out.print("Enter third angle: ");
int a3 = in.nextInt();
int angleSum = a1 + a2 + a3;
if (angleSum == 180 && a1 > 0 && a2 > 0 && a3 > 0) {
if (a1 < 90 && a2 < 90 && a3 < 90) {
System.out.println("Acute-angled Triangle");
}
else if (a1 == 90 || a2 == 90 || a3 == 90) {
System.out.println("Right-angled Triangle");
}
else {
System.out.println("Obtuse-angled Triangle");
}
}
else {
System.out.println("Triangle not possible");
}
}
}
OUTPUT:
Answer:
D. javascript
Explanation:
use form validation method bro