Created
May 5, 2022 15:10
-
-
Save winn/515664d08bc2c16b9f5d68173041be4c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <meta name="viewport" content="width=device-width,initial-scale=1" /> | |
| <title>PyScript Hello World</title> | |
| <link rel="stylesheet" href="https://pyscript.net/alpha/pyscript.css" /> | |
| <script defer src="https://pyscript.net/alpha/pyscript.js"></script> | |
| <py-env> | |
| - numpy | |
| - matplotlib | |
| - pandas | |
| - scikit-learn | |
| </py-env> | |
| </head> | |
| <body> | |
| Hello world! <br> | |
| This is the current date and time, as computed by Python: | |
| <py-script> | |
| from datetime import datetime | |
| from sklearn.ensemble import GradientBoostingClassifier | |
| now = datetime.now() | |
| now.strftime("%m/%d/%Y, %H:%M:%S") | |
| for i in range(10): | |
| print('hello world') | |
| import numpy as np | |
| import pandas as pd | |
| a=np.random.randint(0,10,[1000,5]) | |
| b=np.random.randint(0,2,[1000]) | |
| clf = GradientBoostingClassifier() | |
| clf.fit(a,b) | |
| res = clf.predict(a) | |
| res | |
| </py-script> | |
| </body> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment