Skip to main content

Case Western Reserve University Bearing Data

Project description


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.


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 by pip:

$ pip install –user cwru

Or install manually:

$ python install


You can run unit test by:

$ python -m unittest discover

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for cwru, version 0.2
Filename, size File type Python version Upload date Hashes
Filename, size cwru-0.2.tar.gz (4.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page