Git Product home page Git Product logo

magnet's Introduction

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{9265869,
  author={H. {Li} and S. R. {Lee} and M. {Luo} and C. R. {Sullivan} and Y. {Chen} and M. {Chen}},
  booktitle={2020 IEEE 21st Workshop on Control and Modeling for Power Electronics (COMPEL)}, 
  title={MagNet: A Machine Learning Framework for Magnetic Core Loss Modeling}, 
  year={2020},
  volume={},
  number={},
  pages={1-8},
  doi={10.1109/COMPEL49091.2020.9265869}
}

Sponsors

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

magnet's People

Contributors

haoranli1031 avatar seungjaeryanlee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.