Skip to main content

Usage

import cwru
data = cwru.CWRU("12DriveEndFault", "1797", 384)

Then, you can use data.X_train, data.y_train, data.X_test, data.y_test, data.labels, data.nclasses to train and evaluate your data driven fault diagnostic algrithms.

Not have a local copy of CWRU Bearing data on your machine? Don’t be worry, These .mat files required by your code will be automatically downloaded from Case Western Reserve University Bearing Data Center, renamed properly with their corresponding class, stored in ~/Datasets/CWRU directory to avoid downloading in future.

Arguments

The constructor of class cwru.CWRU has three arguments:

  • exp: experiment, supporting "12DriveEndFault", "12FanEndFault", "48DriveEndFault"

  • rpm: rpm during testing

  • length: length of the signal slice, namely X_train.shape[1]

Install

Install by pip:

$ pip install –user cwru

Or install manually:

$ python setup.py install

Test

You can run unit test by:

$ python -m unittest discover

Release files for cwru 0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cwru 0.2
File Size Uploaded
cwru-0.2.tar.gz 4.2 kB Details

Release files / cwru-0.2.tar.gz

Download URL cwru-0.2.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
1cafc844a6851843bc4f9b309b5dfdc52fb9c1886cd849cd1427571bafa4fe70
BLAKE2b-256 checksum
How to use checksums
6e7da0725229e8079af6aa9bc09ba632ffebe396ff88520b0f923ed883507b6a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2 This release

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page