Skip to content

Complete port to Python3.6 and latest packages

Created by: JesseVent

This pull is just a complete port to Python3.6, hope you don't mind. I've converted all the deprecated functions from 2.X to 3.X, updated all packages to their latest versions and updated imports to remove deprecated modules. Also resolved errors that existed in port across to 3.6 which are summarised below.

  • Fixed critical error by changing structure sequence type. TypeError: The two structures don't have the same sequence type. - First structure has type <class 'list'>, while second structure has type <class 'tuple'>. (3.x issue tensorflow)
  • Fixed critical error by changing to int division '//' TypeError: 'float' object cannot be interpreted as an integer (3.x issue)
  • General conversion of functions from 2.X to 3.X i.e. print('') instead of print '' (3.x issue)
  • Resolved deprecation errors by updating cross_validation module to the newer model_selection module (sklearn issue)

I've tested this extensively with no issues on my machine, and even while training 50 epochs of a 5500 second LSTM network I still manage to get karoo_gp_server.py having an elapsed time of 120.03 seconds.

Model: iMac Late 2015 Retina 5K CPU: 3.2 GHz Intel Core i5 RAM: 32 GB 1867 MHz DDR3 Software: Mac OS X 10.11.6 w/TensorFlow CPU v1.2.1

Thanks

Merge request reports

Loading