[solved] – Question 80825

i am looking for syntax of the below query
one vs rest classification with logistic regression, alpha =1, need to get confusion matrix also

Expert Answer


[solved] – Question 80831

Pass in an ifstream (must be a reference argument [what type of parameter is it?]). The
function prompts the user and, if the file is found, it returns true and the ifstream will be a
handle for that text file. Otherwise the function returns false, and the argument is assumed to
be undefined. How does that look code-wise?

Expert Answer


[solved] – Question 80833

I need to make a function that takes a record as parameter and returns the final numeric grade. Going off of this code how would I do that?
$grades = array(
array(
‘name’ => ‘Alice’,
‘assignments’ => 100,
‘exams’ => 100,
‘project’ => 100,
‘participation’ => -100
),
array(
‘name’ => ‘Bob’,
‘assignments’ => 85,
‘exams’ => 67,
‘project’ => 100,
‘participation’ => 50
),
array(
‘name’ => ‘Eve’,
‘assignments’ => 90,
‘exams’ => 87,
‘project’ => 76,
‘participation’ => 100
),
array(
‘name’ => ‘Mallory’,
‘assignments’ => 80,
‘exams’ => 80,
‘project’ => 80,
‘participation’ => 100
)
);

Expert Answer


[solved] – Question 8084

plz. guide me how can i show each winform for 10 seconds in c# with timer,
i am confued and plz. .provide me some sample for timer .

thanks
in advnace

Expert Answer


[solved] – Question 80863

What is the value of pairs after the following assignment?
pairs=[(x,y) for x in range(4) for y in range(3) if (x+y)%3==0]

Expert Answer


[solved] – Question 80871

For this project you will be designing and implementing a system, in either C or C++, to answer a few mathematical questions. First, given the number 123456789, is it possible to find a permutation (i.e. a rearrangement that preserves the count of each number) such that the left most digit is evenly divisible by 1, the two left most digits are evenly divisible by 2, the three left most digits are divisibly by 3 and so on? For example, in 123456789, 1 is evenly divisible by 1, 12 is evenly divisible by 2, 123 is evenly divisible by 3, but because 1234 is not evenly divisible by 4 this number is not a solution to the question. Second, is it possible to find a similar permutation given the number 1234567890? Finally, is it possible to find a similar permutation for any of the given hexadecimal numbers, 1234567890AB, 1234567890ABC, 1234567890ABCD, 1234567890ABCDE, 1234567890ABCDEF?

Expert Answer


[solved] – Question 80905

Description of the Problem

Write a program that will ask the user to enter 3 character values, a letter, a number, and a symbol, such as B, 6, and #. Write the values in original form, decimal, hex, and octal notation. The output should be written in the format shown below.
Output:

letter = B number = 6 symbol = #

Decimal 66 54 35
Hex 42 36 23
Octal 102 66 43

Expert Answer


[solved] – Question 80923

Create a function (prob3_1) that takes an input vector of integers (each between 1 and 100) and will output the number of elements strictly greater than 30 and calculate the sum of all elements in the vector. Do this only with loops and if statements, do not use the SUM function.

Expert Answer


[solved] – Question 80931

A program that scan a number n and then output the sum of the powers from 1 to n. Thus, if the input is 4, the output should be 288:
1¹ + 2² + 3³ + 4^41 + 4 + 27 + 256 = 288

Solution: for loop, while loop, do while loop

Expert Answer


[solved] – Question 81

How would i loop/do this when there are two possibilities at certain points

When the lake is 90% full, the withdrawal rate will be adjusted to 3 times the normal rate.
When the capacity of the lake is back to 70%, the withdrawal rate will be adjusted back to
normal.

When the lake is lower than 30% full, the withdrawal pump will be closed. When the
capacity of the lake is back to 50%, the withdrawal rate will be adjusted back to normal.

When the lake is over 100% full, a warning message should be issue

Expert Answer