From the course: Machine Learning and AI in Cybersecurity by Pearson
Unlock this course with a free trial
Join today to access over 25,200 courses taught by industry experts.
TensorFlow issues
From the course: Machine Learning and AI in Cybersecurity by Pearson
TensorFlow issues
So let's move forward and talk about a few issues. You're going to find a lot of old code on the internet. One of the problems with Python in general and also with TensorFlow is it's not very good at backward compatibility. So you'll frequently get some really interesting code off the internet that looks exciting to you, but it doesn't really work for you. Well, one of the things you can do is attempt to disable the version 2 behavior. You're basically trying to make it operate as version 1. That often is not going to work, but it's one attempt you can make. You also see us upgrading PIP here, trying to do a nightly preview of TensorFlow, trying to upgrade an old script and output a new script. All of these are just things you can attempt to upgrade an old script, but the unfortunate fact is, you're going to have to do some of that manually. So on the one hand, you will find thousands of wonderful machine learning scripts, even those directed specifically to machine learning for…