Giter Site home page Giter Site logo

materialsproject / gbml Goto Github PK

View Code? Open in Web Editor NEW
5.0 14.0 5.0 2.77 MB

Gradient Boosting Machine-Locfit: A GBM framework using local regresssion via Locfit.

Home Page: http://ect.bell-labs.com/sl/project/locfit/index.html

License: Other

Python 5.83% C 85.56% C++ 1.73% Jupyter Notebook 6.88%

gbml's Introduction

Gradient Boosting Machine-Locfit: A GBM framework using local regresssion via Locfit. For information on Locfit see: http://ect.bell-labs.com/sl/project/locfit/index.html

This package offers predictions for bulk and shear moduli given material descriptors and training data.

Citing

de Jong M, Chen W, Notestine R, Persson K, Ceder G, Jain A, Asta M, Gamst A. "A Statistical Learning Framework for Materials Science: Application to Elastic Moduli of k-nary Inorganic Polycrystalline Compounds." Scientific Reports 6: 34256 (2016) | doi:10.1038/srep34256.

gbml's People

Contributors

dwinston avatar matk86 avatar mkhorton avatar montoyjh avatar rnotestine avatar shreddd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gbml's Issues

Does elasticity.predict_k_g actually work?

I can python setup.py install on my Mac, but when I e.g.

from gbml import elasticity
elasticity.API_KEY = "<MY MP API KEY>"
elasticity.predict_k_g('mp-2340')

I get

mp-2340
Problem opening input file: /Users/dwinston/.virtualenvs/mp/lib/python2.7/site-packages/gbml-1.0-py2.7-macosx-10.10-x86_64.egg/gbml/data/gbml-K-v1.00.data
---------------------------------------------------------------------------
SystemError                               Traceback (most recent call last)
<ipython-input-5-0bd4330d290c> in <module>()
----> 1 elasticity.predict_k_g('mp-2340')

/Users/dwinston/.virtualenvs/mp/lib/python2.7/site-packages/gbml-1.0-py2.7-macosx-10.10-x86_64.egg/gbml/elasticity.pyc in predict_k_g(material_id)
    251         return (None, None, None)  # material_id not properly specified
    252
--> 253     (material_id_list, k_list, g_list, caveats_list) = predict_k_g_list([material_id])
    254
    255     if material_id_list is None:

/Users/dwinston/.virtualenvs/mp/lib/python2.7/site-packages/gbml-1.0-py2.7-macosx-10.10-x86_64.egg/gbml/elasticity.pyc in predict_k_g_list(material_id_list)
    221         k_filename = os.path.join(os.path.dirname(__file__),DATAFILE_K)
    222         g_filename = os.path.join(os.path.dirname(__file__),DATAFILE_G)
--> 223         gbml.core.predict(k_filename, num_predictions, k_descriptors, k_predictions)
    224         gbml.core.predict(g_filename, num_predictions, g_descriptors, g_predictions)
    225

SystemError: error return without exception set

@shreddd are you able to get gbml running on your Mac, or did you install on Linux only?

Python 3 compatibility

It would be good to be able to use gbml with Python 3, since Python 2.x is being deprecated over the next year or two (new numpy releases are only supporting Py3 from 2019 for example). @rnotestine, would it be possible to add Py3 support?

It looks like Py_InitModule has been replaced, instructions for how to port the C interface to support Python 3 are here: https://docs.python.org/3/howto/cporting.html Unfortunately, my C isn't very good, or I'd do this myself.

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.