README.md
Project description
Introduction
The bearing-python is package which include common bearing fault diagnosis dataset implement in numpy, CWRU[1], Paderborn[2] and Jnu[3], etc., and will include more in the future. This package can be used to Deep Learning, Transfer Learning and Semi-Supervised Learning (domain adaptation), etc.. Original data comes from the official bearing vibration. The data is based on the original vibration data without repeated segmentation (the sampling window length is equal to hop length) and is provided in numpy.Array format.
Although the original '*. mat' file of CWRU can be downloaded automatically at the first call , we still recommend you, for possible time consumption and transmission interruption, manually download the dataset file through the link below:
CWRU: Download Link:https://pan.xunlei.com/s/VNNBE0GiGHD5r5_l4BsYOTP-A1?pwd=3syk# Extraction Code:3syk
Paderborn:
Download Link: https://www.aliyundrive.com/s/AanRmmBNZna
Extraction Code: 4qq9
Jnu: Download Link: https://pan.xunlei.com/s/VNNVrpOoaEAPPdIODQaJQQcQA1?pwd=jnri# Extraction Code: jnri
You may need to reorganize dir if you download CWRU from the official file by following format:
Cwru
12DriveEndFault
1797
12DriveEndFault
1797
0.007-Ball.mat
..........
NormalBaseline
1797
.........
12FanEndFault
......
48DriveEndFault
install package
pip install bearing-py
Example
datasets
import bearing
dataset = bearing.datasets.Cwru(exp='12DriveEndFault', rpm='1797', length=1024, root=r'.')
print(dataset.x.shape, dataset.y.shape)
print(type(dataset.x))
cout >>:
(2013, 1024) (2013,)
<class 'numpy.ndarray'>
transform
import torch
import bearing.transform as T
transform = T.Compose(
T.Normalization()
)
x = torch.randn(1, 1, 1024)
x_transform = transform(x)
Declaration
Our code refers to [Litchiware/cwru (github.com)] and modifies a bit.
for more details about each dataset please visit the following link: [1] CWRU: https://engineering.case.edu/bearingdatacenter/download-data-file. [2] Paderborn: https://mb.uni-paderborn.de/kat/forschung/datacenter/bearing-datacenter/ [3] Jnu:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file bearing-python-1.0.4.tar.gz
.
File metadata
- Download URL: bearing-python-1.0.4.tar.gz
- Upload date:
- Size: 10.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bea2efcec858ba287b4cbd989facd72e3978e3f7471564766a40e57b88665ca |
|
MD5 | 555f821408697f2b7bb0e81d906ac800 |
|
BLAKE2b-256 | 1223a66082b56cdb643af0a8e5670e8fd202c3caa7062d816862e36a221faee4 |
File details
Details for the file bearing_python-1.0.4-py3-none-any.whl
.
File metadata
- Download URL: bearing_python-1.0.4-py3-none-any.whl
- Upload date:
- Size: 11.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31994de4815981f75797df77b9b91628594270bf1f15393d8bbebbb76b717596 |
|
MD5 | ca7a0620b98940f8627bcc154a9c69a2 |
|
BLAKE2b-256 | e5dc5259b8c7366c0d5b604d7a7d5f9fbce0afdd683f71f90298d99dd6a26a47 |