concept neural network in category jupyter

appears as: neural networks, neural network, A neural network
Machine Learning for Business: Using Amazon SageMaker and Jupyter

This is an excerpt from Manning's book Machine Learning for Business: Using Amazon SageMaker and Jupyter.

Which of your features really matter most in determining whether the model works, and why? For example, is the model biased in ways that can harm minority groups in your customer base or workforce? Questions like this are becoming increasingly prevalent, particularly due to the widespread use of neural networks, which are particularly opaque.

One advantage of XGBoost over neural networks (that we have not previously touched on) is that XGBoost supports the examination of feature importances to help address the explainability issue. At the time of writing, Amazon does not support this directly in the SageMaker XGBoost API; however, the model is stored on S3 as an archive named model.tar.gz. By accessing this file, we can view feature importances. The following listing provides sample code on how to do this.

This chapter covers different material than you’ve seen in earlier chapters. In previous chapters, you used supervised and unsupervised machine learning algorithms to make decisions. You learned how each algorithm works and then you applied the algorithm to the data. In this chapter, you’ll use a neural network to predict how much power Kiara’s company will use next month.

Neural networks are much more difficult to intuitively understand than the machine learning algorithms we’ve covered so far. Rather than attempt to give you a deep understanding of neural networks in this chapter, we’ll focus on how to explain the output from a neural network. Instead of a theoretical discussion of neural networks, you’ll come out of this chapter knowing how to use a neural network to forecast time-series events and how to explain the results of the forecast. Rather than learning in detail the why of neural networks, you’ll learn the how.

6.4. What is a neural network?

Neural networks (sometimes referred to as deep learning) approach machine learning in a different way than traditional machine learning models such as XGBoost. Although both XGBoost and neural networks are examples of supervised machine learning, each uses different tools to tackle the problem. XGBoost uses an ensemble of approaches to attempt to predict the target result, whereas a neural network uses just one approach.

A neural network attempts to solve the problem by using layers of interconnected neurons. The neurons take inputs in one end and push outputs to the other side. The connections between the neurons have weights assigned to them. If a neuron receives enough weighted input, then it fires and pushes the signal to the next layer of neurons it’s connected to.