Comments (9)
@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.
This colab completely work with Python 3.
From the top menu bar, choose Runtime - Change runtime type.
Please select Python 3 from the runtime type.
from adanet.
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.
Please try with Python 2
from adanet.
The model started with no errors on python2
from adanet.
@GitHub30
How can I use python3 to make the code work? Because python2 is no longer applicable.
from adanet.
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.
@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.
@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)
- `input_fn` called multiple times in `Estimator.train` HOT 5
- relation to AutoML tables in GCP HOT 2
- Question regarding architecture HOT 3
- adanet.ensemble.Ensembler not used in Tutorials? HOT 5
- Adding different loss to tf.estimator.Head HOT 2
- Correct place to add custom metric_fn? HOT 3
- Early stopping 'best-practice' using Adanet
- Interpretation of serialized "architecture_summary" HOT 2
- simple_dnn should not work !
- [Bug] AutoEnsembleEstimator() cannot be instatiated if tf< 2.x HOT 1
- I am having errors and do not know what to do... HOT 1
- Evaluation issue using TPUEstimator HOT 2
- RuntimeError with adanet_tpu tutorial using TF2.2 and Adanet 0.9.0
- AttributeError: module 'adanet' has no attribute 'AutoEnsembleEstimator'
- Is there any code to compute FLOPs and parameter size of adanet?
- Error on running tutorial notebook in Google colab
- Using AdaNet ModelFlow with pre-trained models HOT 1
- Got `AttributeError: 'NoneType' object has no attribute 'logits'` error while applying tutorial
- Is this repository deprecated? HOT 1
- Design suggestions of _IterationBuilder._best_loss from adanet.core.iteration
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adanet.