Multivariate CWRU Bearing Package
This package is created to extract and preprocess the CWRU Bearing datasets provided by the Case Western Reserve University. This package functions as an extension on the original package developed by Litchiware, specifically designed to extract multivariate signals from the Bearing datasets for using in fault diagnosis experiments. Please read the documentation carefully for correct use of the package.
Installation
Installing the package can be done manually, but I recommend to install via pip since this is much easier by just copying the code below and paste it in your terminal/command prompt:
$ pip install multivariate-cwru
Use of the package
After the installation, the package can be imported in your specific session, for example in Jupyter Notebook;
import multivariate_cwru
Then the class in the package can be called as follows;
data = multivariate_cwru.CWRU("12FanEndFault", 2048, 0.8, 1,2,'1797',normal_condition = True)
The called function results in six different objects:
- data.x_train, contains train samples represented in a 3D-array (nr of time series, sequence length, amount of sensors).
- data.y_train, train labels representing different fault conditions.
- data.x_test, test samples, 3D-array (nr of time series, sequence length, amount of sensors).
- data.y_test, test labels representing different fault conditions
- data.nclasses, amount of different fault conditions
- data.labels, the different fault conditions extracted from the datafiles
Arguments
As can be seen in the previous code block, the package asks seven arguments for extracting and preprocessing the CWRU bearing datasets into usable objects. The following arguments need to be addressed when using CWRU class:
- Experiment: The specific name for the experiment to use. There are three options:
"12DriveEndFault","12FanEndFault"and"48DriveEndFault".- Length: Sequence length of every time series.
- Trainsplit: Between 1 and 0 which splits the data into a train and test set.
- Seed: Set seed for data shuffle to recreate reproducible objects.
- Sens: number of sensors to be extracted. Integer number between
1and3.- RPM: Choose the rotations per minute to narrow down the experiment's data. Four options are available,
"1797","1772","1750"and"1730". Multiple inputs are possible.- Normal_condition: Boolean expression to add/exclude the normal conditions from the objects.
Metadata
Release files for multivariate-cwru 1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| multivariate_cwru-1.4.tar.gz | 5.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| multivariate_cwru-1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.6 kB
Release files / multivariate_cwru-1.4.tar.gz
| Download URL | multivariate_cwru-1.4.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d7c0f91b8bf3cdeaef3450b58f19a573cde0fd36a502a8736a72cf3307f2d70d
|
|
BLAKE2b-256 checksum How to use checksums |
30febce61935664ce1c429cb10e64cc5fc413ce49b6e5f2f782460269a45354d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.7
|
Release files / multivariate_cwru-1.4-py3-none-any.whl
| Download URL | multivariate_cwru-1.4-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
04c44d4b37766d225f2d5a38e99a11a6cb6f0a83e80f75495e8bcb4989a077d3
|
|
BLAKE2b-256 checksum How to use checksums |
6c5d921fda54a1bace17731c3957119ba82ae875ad23f30c6b7375dfe0bb4da4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.7
|