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.

Problems with mackey example

See original GitHub issue

Here is what i’ve found: 1.

if dtype == torch.double:
    data = np.loadtxt('../../datasets/mg17.csv', delimiter=',', dtype=np.float64)
elif dtype == torch.float:
data = np.loadtxt('../../datasets/mg17.csv', delimiter=',', dtype=np.float32)

Here are wrong pathes to dataset since it’s in the same directory so it should be

if dtype == torch.double:
    data = np.loadtxt('datasets/mg17.csv', delimiter=',', dtype=np.float64)
elif dtype == torch.float:
    data = np.loadtxt('datasets/mg17.csv', delimiter=',', dtype=np.float32)
  1. Next.
X_data = np.expand_dims(data[:, [0]], axis=1)
Y_data = np.expand_dims(data[:, [1]], axis=1)

I guess it should be

X_data = np.expand_dims(data[:, [1]], axis=1)
Y_data = np.expand_dims(data[:, [0]], axis=1)

or am i wrong? 3. When launching with these fixes i’m getting

Training error: 0.051316608186617714 Test error: 0.052949286276803606

It’s quite big. Moreover, when i’m trying to make plot to compare real and output i’m getting following picture on “test” data

5000 test outputs 5000_outputs

Closer look (100 outputs) 100_outputs closer_look

Am i doing something wrong?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
stefanonardocommented, Oct 12, 2018

Ok, I see your point now! The dataset is the problem, second column is wrong. I don’t how it happened. I will fix the repo ASAP, in the meantime, try this file: https://gist.github.com/stefanonardo/e216b13b21d07d31ca557058028c1198

0reactions
DaddyWeskercommented, Oct 13, 2018

Ok, I see your point now! The dataset is the problem, second column is wrong. I don’t how it happened. I will fix the repo ASAP, in the meantime, try this file: https://gist.github.com/stefanonardo/e216b13b21d07d31ca557058028c1198

Great. That worked. Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

The Mackey topology problem: A complete solution for ...
We show that the Mackey topologies exist in the class LIN 2 of linearly topologized Hausdorff groups and we give a complete description...
Read more >
On the Mackey problem for free abelian topological groups
In this note we considerably extend this example by showing that the free abelian topological group A(X) over a non-discrete zero-dimensional ...
Read more >
A Guide to Mackey Functors
A Mackey functor is an algebraic structure possessing operations which behave like the induction, restriction and conjugation mappings in group representation ...
Read more >
The Mackey Problem for the Compact-Open Topology
are Mackey spaces, except by virtue of some formally stronger property (such as metrizable, barrelled, or bornological). A well-known example of Conway ......
Read more >
Mackey-Glass equation
The Mackey-Glass equation is the nonlinear time delay differential ... the equation's development, and some open problems are explored.
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