Giter Club home page Giter Club logo

Comments (9)

zhouhao-learning avatar zhouhao-learning commented on May 22, 2024 1

@GitHub30
Even if I change to a python2 environment, I will still get an error:

TypeError                                 Traceback (most recent call last)
<ipython-input-7-7612596cd623> in <module>()
     63 
     64 
---> 65 results, _ = train_and_evaluate()
     66 print("Loss:", results["average_loss"])
     67 print("Architecture:", ensemble_architecture(results))

TypeError: 'NoneType' object is not iterable

from adanet.

GitHub30 avatar GitHub30 commented on May 22, 2024 1

This colab completely work with Python 3.

https://colab.research.google.com/github/GitHub30/adanet/blob/google-colaboratory-python3/adanet/examples/tutorials/adanet_objective.colab.python3.ipynb

From the top menu bar, choose Runtime - Change runtime type.
Please select Python 3 from the runtime type.

colab research google com_github_github30_adanet_blob_google-colaboratory-python3_adanet_examples_tutorials_adanet_objective colab python3 ipynb

from adanet.

ShettyHarapanahalli avatar ShettyHarapanahalli commented on May 22, 2024

I also got same issue on ubuntu 16.04
ValueError: b"\n\x83\x01\n;adanet/iteration_2/ensemble_3_layer_dnn/architecture/adanetB:\x08\x07\x12\x00B4| b'1_layer_dnn' | b'2_layer_dnn' | b'3_layer_dnn' |J\x08\n\x06\n\x04text" has type str, but isn't valid UTF-8 encoding. Non-UTF-8 strings must be converted to unicode objects before being added.

from adanet.

GitHub30 avatar GitHub30 commented on May 22, 2024

Please try with Python 2

from adanet.

ShettyHarapanahalli avatar ShettyHarapanahalli commented on May 22, 2024

The model started with no errors on python2

from adanet.

zhouhao-learning avatar zhouhao-learning commented on May 22, 2024

@GitHub30
How can I use python3 to make the code work? Because python2 is no longer applicable.

from adanet.

Efaq avatar Efaq commented on May 22, 2024

Working on Ubuntu 16.02 with python 2, NOT working on Windows 10 with Python 3. I get the same error as reported.
@GitHub30 Is there Python 3 compatibility in the roadmap? As @zhouhao-learning also said, we should stop using Python 2.

from adanet.

cweill avatar cweill commented on May 22, 2024

@Efaq: We do test this package on Python 3, so I'm surprised you are running into such an error. In fact, normally six.u(string) is supposed to convert a string to unicode in both Python 2 and 3, so it's not clear to me how that line is raising an exception:

field[key].string_value = six.u(value)

from adanet.

Efaq avatar Efaq commented on May 22, 2024

@GitHub30 Does it mean you cannot reproduce the error, or is this a suggested workaround to play with the code? Is the pull request mentioned aiming to fix it?
Here is a more detailed specs from my environment, where I still can reproduce the error:
Windows 10, Python 3.6, virtualenv with Tensorflow 1.12.0rc2 and adanet 0.1.0.dev2. Some checkpoints saved, and then the error:
ValueError: b"\n\x83\x01\n;adanet/iteration_2/ensemble_2_layer_dnn/architecture/adanetB:\x08\x07\x12\x00B4| b'1_layer_dnn' | b'2_layer_dnn' | b'2_layer_dnn' |J\x08\n\x06\n\x04text" has type str, but isn't valid UTF-8 encoding. Non-UTF-8 strings must be converted to unicode objects before being added.

from adanet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.