You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.
How to I apply the embedding only on the categorical features (I have also continuous )?
How do address the following issue with Skflow : [http://stackoverflow.com/questions/33871615/train-a-model-with-probability-response-or-number-of-successes-failures-rather]
How do I add the probability estimation for a success in the logistic output ?
Thanks,
Boris
The text was updated successfully, but these errors were encountered:
Currently it's not very convenient - I'm working on API making it better.
To do it - you need to pass everything as continuous matrix and then split it.
e.g.
def my_model(X, y):
# X - is [batch_size, n_features], where features split into n_cat + n_cont
Xcat = tf.cast(tf.slice(X, [0, 0], [X.get_shape()[0], n_cat]), np.int64)
Xcont = tf.slice(X, [0, n_cat], X.get_shape())
This way Xcat can be passed into categorical_variable and then combined with continues features.
Do you mean how to get probability out of the estimator for logistic output? You can just run estimator.predict_proba which will return probabilities per class instead of predicted class.
Hi,
I need assistance in three issues :
Thanks,
Boris
The text was updated successfully, but these errors were encountered: