In previous chapters we encapsulated our tensorflow graph into a class without discussing it any further. This idea itself is already good coding practice. Having a class responsible to build your graph and exposing only things that are useful for using the model (that is, it’s inputs/outputs) is a good programming practice that will save you lots of time.