Data mining for disk damage prediction
Data import and preprocessing
The first is to import all packages required for this data mining
import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
from sklearn.preprocessing import StandardScaler
from sklearn.preprocessing import MinMaxScaler
from sklearn.model_selection import train_test_split
from sklearn.decompositi ...
Posted by goaman on Mon, 11 Oct 2021 22:14:02 -0700
Chapter 10 documents and exceptions
1, Read data from file
1. Use the method read() to read the entire file
(1) Use the open() function to open a file. When calling the open() function, you need to pass a parameter to it. The name of the open file and python will find the specified document in the directory where the currently executed file is located. Note that if the file to ...
Posted by VirtualOdin on Mon, 11 Oct 2021 20:30:02 -0700
Python connection to DM8 database
1. Test environment
Add, delete, modify and query Python version 2.7.5 and DM8 database in Window. The following are the notes on stepping on the pit.
SoftwareeditionDM databaseDM 8.0 and abovePythonPython 2.7.5Window10 professionalWindow10 professional
Note: in case of error reporting during implementation, you must see whether there is a so ...
Posted by sherrilljjj on Mon, 11 Oct 2021 11:11:41 -0700
Android phone Termux installation Linux system and desktop installation super detailed tutorial
1, Content introduction
1.1 termux introduction
Termux It is an Android terminal simulator and Linux environment application, which can run directly without root or setting. Automatically install the smallest basic system, use APT package manager, and use other packages.
1.2 application
linux Xiaobai's operation practice. You ...
Posted by jimdy on Mon, 11 Oct 2021 10:18:54 -0700
The sky is blue and the reptiles are waiting for you ❤️ post request ⚡ cookie login ⚡ handler processor ⚡
📢📢📢📣📣📣 🌻🌻🌻 Hello, everyone. My name is Dream. I'm an interesting Python blogger. I have a small white one. Please take care of it 😜😜😜 🏅🏅🏅 CSDN is a new star creator in Python field. I'm a sophomore. Welcome to cooperate with me 💕 Introduction note: this paradise is never short of genius, and hard work is your final admissio ...
Posted by ciciep on Sun, 10 Oct 2021 20:18:00 -0700
Python engineering code learning notes (updated at any time)
1. format usage of Python formatted output
"{replaced variable 0}... {replaced variable 1}...". Format (variable 0, variable 1) variables can be of any type
name = "Jack"
num = 1
print("{0}yes{1}A schoolbag".format(name,num))
2.assert function: judge whether the condition is true. If true, continue to run the program. If false, e ...
Posted by Gonwee on Sun, 10 Oct 2021 18:54:01 -0700
A small tool for writing a batch packaging program in python~
Author: Feng Xiaodao WeChat search [Python and Excel] pay attention to my official account for more information.
Recently, I read some articles about the visual packaging tool auto py to exe sent by some big guys. Auto py to exe is based on pyinstaller, but it has more GUI interface than pyinstaller. I also tried it myself. I feel it's reall ...
Posted by tukon on Sun, 10 Oct 2021 10:41:25 -0700
Python Note -- Day 13.Object-oriented-higher order
19 Object-oriented - higher order
19.1 Built-in Members
class A():
pass
class C():
pass
class B(C):
pass
class Demo(A,B):
'''
Here is the documentation for the class
'''
name = "XX"
age = 30
def sing(self):
print('the songs rhythm and melody')
pass
obj = Demo()
# Gets the member to which the c ...
Posted by badboy1245 on Sun, 10 Oct 2021 10:01:01 -0700
10Python Notes-dict Delete/Method/Feature, set
[set] The elements inside a set are not allowed to repeat. The elements inside a set are out of order. The set elements are case sensitive.
[set creation] Using set(), and passing in a list, the elements of the list will be converted to the elements of the set
[Read set elements]
'Alice' in name_set # ==> True
[Add set element] If you ad ...
Posted by StormTheGates on Sun, 10 Oct 2021 10:00:33 -0700
Python can't play games? The of game practice ---- ink spin
Hi, guys, good morning, good noon and good evening,
Through the study of Pygame in the first two chapters, we understand its basic use, and attach the link:
1. Python can't play games? Make a game in an hour!
2. Python can't play games? Do you know the objects in Pygam ...
Posted by cigardude on Sun, 10 Oct 2021 07:06:25 -0700