[PyQt5] Keep the window at the top or bottom of the screen
I used to think that it would be quite difficult to keep the window of the program at the top or bottom in PyQt5.
Read More »[PyQt5] Keep the window at the top or bottom of the screenI used to think that it would be quite difficult to keep the window of the program at the top or bottom in PyQt5.
Read More »[PyQt5] Keep the window at the top or bottom of the screenpprint()
is an output method of standardized output in Python. A classic mode is to print the data type of Dictionary according to key-value from top to bottom.
When we using PyQt5 to develop a Python GUI, sometimes we have a request to store the user's settings, such as user customize the interface appearance color. If we don't save this color setting, the next time the user opens the program, the appearance color is still default.
Read More »[PyQt5] Use "QSettings" to store user's settingsIn 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 value