投稿時間:2022-05-08 08:08:12 RSSフィード2022-05-08 08:00 分まとめ(9件)
カテゴリー等 | サイト名等 | 記事タイトル・トレンドワード等 | リンクURL | 頻出ワード・要約等/検索ボリューム | 登録日 |
---|---|---|---|---|---|
python | Pythonタグが付けられた新着投稿 - Qiita | ディープラーニング入門 ~最短の物体検出体験~ | https://qiita.com/bugmaker/items/279f31bfa57759f52275 | 起動 | 2022-05-08 07:21:28 |
海外TECH | DEV Community | PyScript :- The JS Killer? | https://dev.to/riteshshukla04/pyscript-the-new-js-422a | PyScript The JS Killer We all have been hopping towards different programming languages for different purposes Most of us prefer Python for Machine Learning and Data Analytics while JavaScript for Web development The ability of JavaScript to run in the browser gives it an upper hand in web development Adding ML and Data Analytics projects to a website has always been a pain for developers We need to create and manage various APIs to get the task done However this is not the case anymore Now you can write and run Python in the browser using PyScript just like JavaScript PyScript PyScript is developed by Anaconda With the Help of py script tag you can directly write python programs in an HTML file just like you write JavaScript code under the script tag PyScript also supports various python modules including scikit learn matplotlib Modules can be installed using py env Installation There is absolutely no installation needed to run PyScript Just add proper CSS and script import statement to the HTML file and you are good to go The import statement to be added is given below lt head gt lt link rel stylesheet href gt lt script defer src gt lt script gt lt head gt Note You need to wait for some time as it takes time to create the proper environment to run python files How to use Pyscript Directly in HTML file Embedded code lt py script gt print Hello I am written in Python lt py script gt Use external file lt py script src py output plot gt lt py script gt Latter is preferred because code editors like VS code still doesn t identify python code in HTML files This can cause lots of indentation errors in complex codes and also you won t be able to use features like auto complete and suggestions Examples Getting started lt DOCTYPE html gt lt html gt lt head gt lt link rel stylesheet href gt lt script defer src gt lt script gt lt head gt lt body gt lt py script gt print Hello I am written in Python lt py script gt lt body gt lt html gt Creating Linear Regression in PyScriptFor this we need to install libraries scikit learn matplotlib NumPy and pandas It can be done by adding the library s name under the tag lt DOCTYPE html gt lt html gt lt head gt lt link rel stylesheet href gt lt script defer src gt lt script gt lt py env gt pandas scikit learn matplotlib numpy lt py env gt lt head gt lt body gt lt div id plot gt lt div gt lt py script src py output plot gt lt py script gt lt body gt lt html gt import pandas as pdimport numpy as npimport matplotlib pyplot as pltfrom sklearn model selection import train test splitfrom sklearn linear model import LinearRegressiondata Hours Scores s pd DataFrame data X np array s Hours reshape Y np array s Scores reshape X train X test y train y test train test split X Y test size random state regressor LinearRegression regressor fit X train y train y pred regressor predict X test fig plot plt subplots print y pred plot scatter X test y test color b plot plot X test y pred color k figGraph and prediction are displayed on the browser Conclusion Since PyScript is relatively new Quite a few numbers of problems are associated with it a Code editors are still not adapted to identify python code inside HTML files So features like auto indent auto complete simply won t work b You can t read APIs because the SSL module is still not available c You can t read CSV files from local storage d It is relatively slow You can also create interactive experience using PyRepl which is part of PyScript project PyScript has great potential It would be interesting to see how things go in the future for PyScript For more information visit | 2022-05-07 22:06:19 |
海外TECH | Engadget | John McEnroe is playing tennis against a virtual version of himself on ESPN+ | https://www.engadget.com/john-mcenroe-virtual-ai-avatar-tennis-match-203301675.html?src=rss | John McEnroe is playing tennis against a virtual version of himself on ESPN Michelob Ultra and ESPN have decided to use AI to answer an enduring question what would happen if tennis legend John McEnroe played against himself An upcoming ESPN special entitled quot McEnroe vs McEnroe quot will feature the year old star who retired from singles competition in playing against a complicated AI trained version of himself nbsp According to TechCrunch the process for the actual game is fairly involved After the real McEnroe sends a ball over the net the AI avatar responds to its direction and quot swings quot ーat this point a new ball is launched from a ball cannon which is obscured by a smokescreen The positioning of the ball cannon and smokescreen are designed to make the ball appear as if it s coming off the avatar s racket The avatar itself is projected onto a hologram particle screen This teaser below shows off a tantalizingly small amount of footage As for how this all came together the real McEnroe spent a day with production company Unit who used full body motion capture and scans combined with Unreal Engine s MetaHuman Creator technology Adweek says that the McEnroe avatar and its programming are based on five different points in McEnroe s career including his debut in his ascent to the top of the sport in and his final year as a pro in Besides the work with the real McEnroe Unit also analyzed hundreds of hours of footage from his career and recorded different shots for the virtual avatar Given that McEnroe is now he ll be playing against a much younger version of himself ーwhether or not that means the AI will have the edge remains to be seen of course If this somewhat odd matchup has piqued your interest TechCrunch says the special will air tonight May th on ESPN at PM ET nbsp | 2022-05-07 22:45:01 |
ニュース | BBC News - Home | The Papers: Sinn Fein's 'seismic' win and 'leaked' Beergate memo | https://www.bbc.co.uk/news/blogs-the-papers-61367343?at_medium=RSS&at_campaign=KARANGA | front | 2022-05-07 22:45:55 |
ニュース | BBC News - Home | Liverpool 1-1 Tottenham Hotspur: Luis Diaz equaliser sends Reds top | https://www.bbc.co.uk/sport/football/61281249?at_medium=RSS&at_campaign=KARANGA | difference | 2022-05-07 22:00:51 |
北海道 | 北海道新聞 | 民間作業船が知床到着、8日から船内調査 遊覧船社長は乗客家族に補償説明 | https://www.hokkaido-np.co.jp/article/678009/ | 遊覧船 | 2022-05-08 07:30:23 |
北海道 | 北海道新聞 | 製鉄所から女性や子どもら退避 マリウポリ | https://www.hokkaido-np.co.jp/article/678069/ | 退避 | 2022-05-08 07:22:00 |
海外TECH | [Highlight] Marcus Smart successfully misses the second ft but Boston fails to score, Milwaukee survives - ABC | https://www.reddit.com/r/nba/comments/uknt1e/highlight_marcus_smart_successfully_misses_the/ | Highlight Marcus Smart successfully misses the second ft but Boston fails to score Milwaukee survives ABC submitted by u Metsvault to r nba link comments | 2022-05-07 22:16:59 | |
海外TECH | [Post Game Thread] The Milwaukee Bucks take a 2-1 series lead in the 103-101 win over the Boston Celtics led by 42/12/8/2/3 from Giannis Antetokounmpo | https://www.reddit.com/r/nba/comments/uknsmg/post_game_thread_the_milwaukee_bucks_take_a_21/ | Post Game Thread The Milwaukee Bucks take a series lead in the win over the Boston Celtics led by from Giannis Antetokounmpo Box Scores NBA amp Yahoo nbsp GAME SUMMARY Location Fiserv Forum Clock Officials Pat Fraher Zach Zarba and Sean Wright Team Q Q Q Q Total Boston Celtics Milwaukee Bucks nbsp TEAM STATS Team PTS FG FG P P FT FT OREB TREB AST PF STL TO BLK Boston Celtics Milwaukee Bucks nbsp PLAYER STATS Boston Celtics MIN PTS FGM A PM A FTM A ORB DRB REB AST STL BLK TO PF Jayson TatumSF Al HorfordPF Robert Williams IIIC Jaylen BrownSG Marcus SmartPG Grant Williams Derrick White Payton Pritchard Daniel Theis Malik Fitts Luke Kornet Juwan Morgan Aaron Nesmith Nik Stauskas Milwaukee Bucks MIN PTS FGM A PM A FTM A ORB DRB REB AST STL BLK TO PF Wesley MatthewsSF Giannis AntetokounmpoPF Brook LopezC Grayson AllenSG Jrue HolidayPG Bobby Portis Pat Connaughton George Hill Jevon Carter Thanasis Antetokounmpo Serge Ibaka Jordan Nwora Rayjon Tucker Luca Vildoza rnbapgtgenerator by u fukr submitted by u howser to r nba link comments | 2022-05-07 22:16:22 |
コメント
コメントを投稿