question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

output feature has many 0.

See original GitHub issue

Hi, when I trying to generate the “web” output, the output is a series with some first values and all others are 0.

I don’t know why this happens? I used tf 1.13 to run it.

For example:

array([[-0.07411094],
       [ 0.50166506],
       [ 0.30637154],
       [ 0.36993235],
       [ 0.08496358],
       [-0.11077818],
       [-0.81356037],
       [-0.16060808],
       [ 0.13039538],
       [ 0.13650048],
       [ 0.        ],
       [ 0.        ],
       [ 0.        ],
       [ 0.        ],
       [ 0.        ],
       [ 0.        ],
       [ 0.        ],
       [ 0.        ],
       [ 0.        ],
       [ 0.        ],
       [ 0.        ],
       [ 0.        ],
       [ 0.        ],
       [ 0.        ],
       [ 0.        ],
       [ 0.        ],
       [ 0.        ],
       [ 0.        ],
       [ 0.        ],
       [ 0.        ],

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
fjxmlzncommented, Oct 12, 2020

Glad to hear that you find out the problem! Thanks!

0reactions
Tulip4attoocommented, Oct 12, 2020

A small note: I cloned your repo 19 days ago, and I just clone your repo today (and it generated normal output).

Why didi I add 2 these lines? Because I want to separate session to view/debug somethings. I often use these lines:

run_config = tf.ConfigProto()
run_config.gpu_options.allow_growth = True
sess = tf.Session(config=run_config)
sess.run(tf.global_variables_initializer())

Since 2019, I switched to use Keras to write TF code, so it’s quite hard to debug this. Thank you again for your support.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why feature vectors have a lot of zero values in Keras VGG16 ...
In my own custom network I have found that zeros generally occur in the same location in the vector regardless of the input...
Read more >
Dealing with excessive number of zeros - Cross Validated
I have applied the log-return over the prices as well as all the features. The prediction are not bad, but the trend tend...
Read more >
Analyzing Skewed Continuous Outcomes With Many Zeros
Prevention researchers often analyze nonnegative continuous outcomes that are skewed and contain many zero observations. Variables with these features can ...
Read more >
Lots of zeros or too many zeros? - Very statisticious
Zero inflation is when there are more 0 values in the data than the distribution allows for. But some distributions can have a...
Read more >
Zero-Inflated Regression. Teach your regressor how to output…
The output of the algorithm is a line that takes a value of zero exactly one time. The problem persists in higher dimensions,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found