model: pytorch: base: Update calls to numpy array creation
See original GitHub issue/home/runner/work/dffml/dffml/model/pytorch/dffml_model_pytorch/pytorch_base.py:181: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray
x_cols[feature] = np.array(x_cols[feature])
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
torch.from_numpy — PyTorch 1.13 documentation
Creates a Tensor from a numpy.ndarray . The returned tensor and ndarray share the same memory. Modifications to the tensor will be reflected...
Read more >Pytorch Tutorial from Basic to Advance Level - Kunal Bhashkar
In this blog, I will explain about Pytorch open-source Deep Learning library with the algorithmic implementation of Deep learning concepts.
Read more >Understanding PyTorch with an example: a step-by-step tutorial
For training a model, there are two initialization steps: ... Loading data: turning Numpy arrays into PyTorch tensors.
Read more >NEP 18 — A dispatch mechanism for NumPy's high level array ...
In NumPy 1.16, you need to set the environment variable NUMPY_EXPERIMENTAL_ARRAY_FUNCTION=1 before importing NumPy to test NumPy function ...
Read more >PyTorch Tutorial: How to Develop Deep Learning Models with ...
A Tensor is just the PyTorch version of a NumPy array for holding data ... the model graph, like calling backward() when training...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@pdxjohnny I think this issue still persists. Can I take up this one ?
Hey @snnipetr !!
Yess!! If you can reproduce the issue then please go ahead… So as I can see there has been some work around this in #1000, so please take a look at that.
Also, as a rule, we don’t ask if we can do something, we state our intention to try to do it, then follow these guidelines.
Before making a PR please also take a look at the relevant documentation up here
I hope this helps, please feel free to ask any questions on gitter 😃