In the middle of the desert you can say anything you want
Makes everything slower by about 2-4 times.
_keras_history
AttributeError: 'tensorflow.python.framework.ops.EagerTensor' object has no attribute '_keras_history
disappears if we dont’t use eager execution inside the metric, fine if we use it inside the model. That is tf.config.experimental_run_functions_eagerly(False)
inside metrics.py solves this, but model.run_eagerly=True
is fine.
https://github.com/tensorflow/addons/pull/377 re output_masks and it being blocked
tensorflow - What is the difference between tf.keras and tf.python.keras? - Stack Overflow
_
does the magic. Can be used in expressions too.
self.xxx
Some kind of ML language switcher that trains on my input – I write something in L1, delete, write same keystrokes on L2 => training instance. Also based on window class and time maybe?
“Could not find valid device for node.” while eagerly executing. - means wrong input type.
Mixing keras and tf.keras is bad karma; only the same one should be used and it should be tf.keras.
AttributeError:’Tensor’ object has no attribute ‘_keras_history’ – inneka.com
Everything should be done by:
When you are using tf operation – you are getting tf tensor object which doesn’t have history field. When you use keras functions you will get keras.tensors.
I should read this sometime: Breakpoints - Help | IntelliJ IDEA
I should create a better ym
that supports copying markdown links that have |s in them. Using Add ability to yank inline by jgkamat · Pull Request #4651 · qutebrowser/qutebrowser · GitHub most probably.
tf.boolean_mask | TensorFlow Core r2.0 is something similar to what I do with tensor*mask
, but it removes the rows where the condition is not fulfilled.
Keras custom metrics raises error when update_state returns an op. · Issue #30711 · tensorflow/tensorflow · GitHub - forget about returning ops in custom metrics, internal Google TPU issue thing. It’s supposed not to work. Error was:
TypeError: To be compatible with tf.contrib.eager.defun, Python functions must return zero or more Tensors; in compilation of <function Function._defun_with_scope.
.wrapped_fn at 0xb34ec5d08>, found return value of type <class ’tensorflow.python.framework.ops.Operation’>, which is not a Tensor.
tf.assign_add - TensorFlow Python - W3cubDocs - is this another place to read readable TF documentation?
model.run_eagerly=True
is not enough – when creating a custom Metric, as mentioned in metrics.py, tf.config.experimental_run_functions_eagerly(True)
is also needed.
As added bonus - if this is not enabled, Intellij Idea debugging also doesn’t work. As in the breakpoints get ignored.
I really should resurrect my link DB.
Sandeep Aparajit: Tutorial: Conditional Random Field (CRF) is a nice 108-page presentation spanning basic probability theory and flowing to Bayes, marginals, CRF etc etc, very very self-contained.
Generative VS Discriminative Models - Prathap Manohar Joshi - Medium
Overview — ELI5 0.9.0 documentation “.. is a Python package which helps to debug machine learning classifiers and explain their predictions.”
If I *
a tensor by another tensor I get a per element multiplication. I keep forgetting this for some reason
I can even edit EagerTensors by right click -> Edit value! Quite a weird UI but still nice