[PyCharm] Use Profile to Analyze Program Performance
In the developing process, apart from carefully debug, we often worry about the execution efficiency of the program.
In the developing process, apart from carefully debug, we often worry about the execution efficiency of the program.
If you want to develop a Python GUI program, choose PyQt5 is a great choice. In the past, I recorded about how to configure the Qt Designer in PyCharm on Windows. ([PyQt5] Tutorial(1) Install PyQt5 and print “Hello World!”)
Read More »[Linux ] Use Qt Designer to develop Python GUI program in Ubuntu 18.04In the past, about a year ago, when I was first learning Python, I wrote a “Sudoku problem solving program” as an exercise. After that, I had a brief Clean Code, but I didn’t know anything about this program. Too much optimization. ([Python] Use Program to solve Sudoku problem)
Read More »[Python] Use the for-loop program to solve Sudoku problems (optimized version)In yesterday I installed a new operating system in my device, and downloaded an PyCharm IDE for programming. But when I configure a new Interpreter in virtual environment, I got an error message:
Read More »[Solved][PyCharm] An ERROR occurred when Adding a New Virtual Environment: ModuleNotFoundError: No module named ‘distutils.core’When we developing a large-scale Python project, we will start to try various acceleration methods.
Read More »[Linux] Speed Up Pure Python Programs with CythonIf we have both the model classification results and correct answers, we can calculate the Binary Cross Entropy, it is a famous loss function.
Read More »[Machine Learning] Introduction to Binary Cross EntropyWhen using sigmoid function in PyTorch as our activation function, for example it is connected to the last layer of the model as the output of binary classification. After all, sigmoid can compress the value between 0-1, we only need to set a threshold, for example 0.5 and you can divide the value into two categories.
Read More »[PyTorch] Set the threshold of Sigmoid output and convert it to binary valueWhen we using PyCharm IDE to develop a project, sometimes we may delete some files by mistake. Maybe we will feel nervous, but in fact we can restore the deleted files.
Read More »[PyCharm] How to Restore the deleted filesToday if you are preprocessing some machine learning data, maybe you need to convert PyTorch tensor to one-hot encoding type. There is a intuitive method that is convert TENSOR to NUMPY-ARRAY, and then convert NUMPY-ARRAY to one-hot encoding type, just like this article: [Python] Convert the value to one-hot type in Numpy
Read More »[PyTorch] Convert Tensor to One-Hot Encoding TypeNumpy is an important package for processing data in Python. It is often used for various data analysis tasks.
Read More »[Python] Convert the value to one-hot type in Numpy