Skip to content

๐ŸŽ“ Educate users on the processes of AI material research through a hands-on, intuitive approach. Visually create molecules, train neural networks, analyze and learn!

License

Notifications You must be signed in to change notification settings

Robert-K/MAChINE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

MAChINE Logo

A PSE project by 13thWitch, AnoukSommer, CSCMe, EliteStudent420, Viola2345 & Robert-K

Supervised by Andrรฉ Eberhard


With MAChINE you can:

  • Draw any molecule imaginable and preview it in 3D
  • Configure and train machine learning models to predict properties of molecules
  • Analyze your molecules for various properties with the models you trained
  • Compare your molecules and models to other users' creations

Extendability

Adding a Model Type

  1. Check if your model requires a different molecule format. (currently implemented: fingerprint vector, mol graph)
    1. Update create_dataset in create_dataset.py to include your new molecule format
    2. Increment the version number in create_dataset.py & storage_handler.py
    3. Update update_dataset and run for every existing dataset
  2. Place your custom model type in the machine_learning/models folder
  3. Edit baseModels.json
    1. Add a new Entry. The name for the type chosen here will be used in ml_dicts and ModelConfigPage to run appropriate code
    2. Set your default parameters. The parameters for your model type are defined here. lossFunction and optimizer in parameters are required, as is metrics.
  4. Create a file in /backend/machine_learning to hold your model and dataset creation functions
  5. Implement a function that returns a tuple containing A: your built model, B: A dataset compatible with your model
  6. Implement a function that converts molecules to a valid input format for your model
  7. Enter your new functions into the proper ml_dicts
  8. Build a React Component to customize your model and place them in components/modelConfig
  9. Update modelTypeSpecificComponents to contain your new components

Adding Datasets

  1. Find your source csv file, ensure it has smiles codes and choose labels you want to include
  2. In create_dataset.py run create_complete_dataset with your parameters
  3. Optional: Check correctness by running view_dataset.py with the debugger and a breakpoint on highlighted line
  4. Rename output.pkl and move it to backend/storage/data
  5. Restart the backend

Enabling multi-label Training


Special Usage

Admin Mode

  • In any frontend page, type "adminmode" on your keyboard to enter admin mode
  • You can edit the server address by clicking on the server status icon
  • You can delete scoreboard entries on the scoreboard page by clicking the ๐Ÿ—‘๏ธ Icon (or deleting all)

Bootstrapped with Create React App

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.

The page will reload when you make changes.
You may also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

npm run eject

Note: this is a one-way operation. Once you eject, you can't go back!

If you aren't satisfied with the build tool and configuration choices, you can eject at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.

You don't have to ever use eject. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.

Learn More

You can learn more in the Create React App documentation.

To learn React, check out the React documentation.


Commit Message Etiquette

Start commit messages with ADD:, UPD:, FIX: or DEL: corresponding to change.

forthebadge forthebadge forthebadge

About

๐ŸŽ“ Educate users on the processes of AI material research through a hands-on, intuitive approach. Visually create molecules, train neural networks, analyze and learn!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published