Skip to main content

MagNet is a large-scale dataset designed to enable researchers modeling magnetic core loss using machine learning to accelerate the design process of power electronics.

Project description

MagNet Logo

PyPI wandb

MagNet is a large-scale dataset designed to enable researchers modeling magnetic core loss using machine learning to accelerate the design process of power electronics. The dataset contains a large amount of voltage and current data of different magnetic components with different shapes of waveforms and different properties measured in the real world. Researchers may use these data as pairs of excitations and responses to build up dynamic magnetic models or calculate the core loss to derive static models.

Installation

The trained models are provided via the mag-net PyPI package.

pip install mag-net

How to Use

Use Trained Model

The mag-net package has PyTorch pretrained models that you can load and use.

import magnet

magnet.models.pytorch.MiniLSTM(pretrained=True)

If you want to train the model yourself and want the model without the pretrained weights, you can set pretrained=False.

We will publish more trained models soon. Please look forward to it!

Use Dataset

The mag-net package supports PyTorch natively by providing a PyTorch dataset. You can get the dataset the following way:

import magnet

dataset = magnet.PyTorchDataset(download_path="data/", download=True)

With download=True, the data will automatically be downloaded if it does not exist yet locally.

We also support TensorFlow natively by providing a tf.data style dataset. You can get the dataset the following way:

import magnet

dataset = magnet.TensorFlowDataset(download_path="data/", download=True)

With download=True, the data will automatically be downloaded if it does not exist yet locally.

For other use cases, you must download the dataset manually. The following code will download the dataset to data/ directory.

import magnet

magnet.download_dataset(download_path="data/")

How to Cite

If you used MagNet, please cite us with the following BibTeX item.

@INPROCEEDINGS{MagNet,
  author={H. {Li} and S. {Lee} and M. {Luo} and C. {Sullivan} and Y. {Chen} and M. {Chen}},
  booktitle={2020 Twenty-first IEEE Workshop on Control and Modeling for Power Electronics (COMPEL)}, 
  title={MagNet: A Machine Learning Framework for Magnetic Core Loss Modeling}, 
  year={2020}
}

Sponsors

This work is sponsored by the ARPA-E DIFFERENTIATE Program.

Project details


Download files

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

Source Distribution

mag-net-0.0.3.tar.gz (4.5 kB view hashes)

Uploaded Source

Built Distribution

mag_net-0.0.3-py3-none-any.whl (142.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page