Remember the KDDCUP data set you looked at in Chapter
2
? Let’s try to apply the RBM
but instead of dealing with excessively large values in the data set, you will learn how to
deal with data that is comprised of a hefty number of zero entries.
Again, you begin by importing all of the necessary modules (see Figure
5-37
). Figure 5-37. Importing the necessary modules
do df.head() or print out the shape, but it still helps to get a sense of what the data set
looks like (see Figure
5-38
Chapter 5 Boltzmann maChines
The output is shown in Figure
5-39
.