E
E
EddRu2021-03-01 17:00:47
PyCharm
EddRu, 2021-03-01 17:00:47

PyCharm UserFriendly for newbies?

I started learning Python, and at the same time I read about neural networks.

There was an example in the book with a simple neural network, I imported the project into PyCharm with git .

To run the code, I installed python 2.7, since I have 3.8 on my W10. In the PyCharm settings, I changed it to the desired interpreter. Installed all required dependencies.

It was necessary to execute the code in the console:

>>> import mnist_loader
>>> training_data, validation_data, test_data = \
... mnist_loader.load_data_wrapper()

At the import mnist_loader step, there is an error right away, here is a screen, the mnist_loader.py file is in the src package: I
603ceb3ca90b6477588085.jpeg

spent two hours trying to figure it out and did not understand why. I decided in the end to try to run in the standard IDLE Python, the code immediately without a single error
done as needed..

Epoch 0: 9083 / 10000
Epoch 1: 9246 / 10000
Epoch 2: 9328 / 10000
Epoch 3: 9339 / 10000
Epoch 4: 9329 / 10000
Epoch 5: 9402 / 10000
Epoch 6: 9401 / 10000
Epoch 7: 9397 / 10000
Epoch 8: 9391 / 10000
Epoch 9: 9431 / 10000
Epoch 10: 9463 / 10000
Epoch 11: 9440 / 10000
Epoch 12: 9471 / 10000
Epoch 13: 9482 / 10000
Epoch 14: 9462 / 10000
Epoch 15: 9465 / 10000
Epoch 16: 9495 / 10000
Epoch 17: 9473 / 10000
Epoch 18: 9494 / 10000
Epoch 19: 9496 / 10000
Epoch 20: 9494 / 10000
Epoch 21: 9489 / 10000
Epoch 22: 9484 / 10000
Epoch 23: 9492 / 10000
Epoch 24: 9491 / 10000
Epoch 25: 9496 / 10000
Epoch 26: 9500 / 10000
Epoch 27: 9506 / 10000
Epoch 28: 9489 / 10000
Epoch 29: 9497 / 10000

Why can't my PyCharm import ?
After all, this is the main thing. I read the PyCharm article about getting started, I didn’t find anything like that there.

What is the problem? Maybe there are more or less normal instructions on how to get started with PyCharm? Just digging into the IDE documentation, which in theory should simplify the work of such itself, is better to dig into the documentation of Python itself.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
kamenyuga, 2021-03-01
@EddRu

In short, PyCharm is for those who have experience in development. And if in more detail, then the point here is not only in paycharm, but also in Python.
When you just run a file through a standard Python idl, the working folder is the folder where the file is located. And in the case of paycharm, the working directory is the project folder. This is how paycharm manages the Python feature. In the project properties, you can change the set of folders where imported modules will be searched. And you can just do it import src.mist_loader. In addition, each new launch of the code in paycharm is, by default, a new clean launch of the interpreter.
To work with neural networks in python, it is best to use anaconda (or miniconda), in which the spyder and jupyter development environments are available - less flexible, but quite simple and friendly to beginners.

M
mkone112, 2021-03-01
@mkone112

No, it's not user-friendly. If you want to learn how to program, you need a simple editor like notepadqq or notepad++ and a console. Even sublime IMHO is already Erebor. For the first year, this is more than enough.

a simple neural network

I hope I didn’t forget to study at least the course of linal and discreet first?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question