Skip to ContentGo to accessibility pageKeyboard shortcuts menu
OpenStax Logo
Principles of Data Science

Quantitative Problems

Principles of Data ScienceQuantitative Problems

1.
 
a.
Suppose that a neural network has been trained to classify students as likely to graduate or not likely to graduate based on various input parameters. There is a single output neuron having four inputs, x 1 , x 2 , x 3 , and one output, y . The output y is used to make the classification. The weights of the three inputs of this neuron are w 1 = 0.25 , w 2 = 0.09 , and w 3 = 0.31 . The bias of the neuron is b = 0.23 . Find the output y if ( x 1 , x 2 , x 3 ) = ( 0.4 , 1.2 , 0.6 ) and if the activation function is:
  1. ReLU
  2. Leaky ReLU defined by max⁡ (0.2x,x)
  3. Sigmoid
  4. Softplus
b.
Which of the four activation functions, applied at the output layer, would be best suited for this classification task? Using this activation function, how would the neural network classify the student?
2.
The output of a neural network on data points are given in the table.
Data point Predicted y ^ Actual(target) y
1 ( 0.043 , 1.169 , 1.019 ) ( 0 , 1 , 1 )
2 ( 0.149 , 0.927 , 0.136 ) ( 0 , 1 , 0 )
3 ( 0.96 , 0.237 , 0.109 ) ( 1 , 0 , 0 )
4 ( 0.842 , 0.148 , 0.218 ) ( 1 , 0 , 0 )
5 ( 0.942 , 0.838 , 1.011 ) ( 1 , 1 , 1 )
Table 7.4
Compute the average loss using the following loss functions.
a.
MSE
b.
Hinge loss
Citation/Attribution

This book may not be used in the training of large language models or otherwise be ingested into large language models or generative AI offerings without OpenStax's permission.

Want to cite, share, or modify this book? This book uses the Creative Commons Attribution-NonCommercial-ShareAlike License and you must attribute OpenStax.

Attribution information
  • If you are redistributing all or part of this book in a print format, then you must include on every physical page the following attribution:
    Access for free at https://openstax.org/books/principles-data-science/pages/1-introduction
  • If you are redistributing all or part of this book in a digital format, then you must include on every digital page view the following attribution:
    Access for free at https://openstax.org/books/principles-data-science/pages/1-introduction
Citation information

© Dec 19, 2024 OpenStax. Textbook content produced by OpenStax is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike License . The OpenStax name, OpenStax logo, OpenStax book covers, OpenStax CNX name, and OpenStax CNX logo are not subject to the Creative Commons license and may not be reproduced without the prior and express written consent of Rice University.