python |
Pythonタグが付けられた新着投稿 - Qiita |
Python開発環境の整え方(Mac) |
https://qiita.com/hasegit/items/9f13a2e271ee2abe7917
|
poetryconfigvirtualenvsinprojecttrueもしgit管理のプロジェクトとする場合、venvをpushするとあまりよろしくないので、gitignoreにvenvを追加することを忘れないようにしましょう。 |
2022-01-29 19:49:43 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
数B未履修でもわかる!ニューラルネットワーク! |
https://qiita.com/m-dev672/items/5f388a32d3e301b40abf
|
りんごのデータとみかんのデータを用いて説明していますが、これらのデータは最初に扱うには少し大きすぎるので、入力層のノード数、出力層のノード数をつに設定し、XORゲートのような動作をするAIを作ってみたいと思います。 |
2022-01-29 19:39:59 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
pyenvを使ってEC2(Amazon Linux 2)にpython3.9.10をインストールする。 |
https://qiita.com/Freegon13/items/9c9447751e3094a64055
|
pyenvを使ってECAmazonLinuxにpythonをインストールする。 |
2022-01-29 19:07:36 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
Seleniumをすぐ使えなかった苦労話 |
https://qiita.com/sa_cat_neko/items/e0860ceb6e9f8edd628e
|
ChromeDriverがないだけでしたが実行してもエラーが出ていたため結果「このモジュールがないよ」というメッセージをみたら、特に何も気にせずPythonにインストールしてしまっていたので、バージョンを気にしながらできるようになれたらいいなと思いました。 |
2022-01-29 19:06:22 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
【自動返信メール】送信処理の手順(WordPress/Amazon SES) |
https://qiita.com/jin1125/items/d243161070467c88a44f
|
amazonses |
2022-01-29 19:49:20 |
Docker |
dockerタグが付けられた新着投稿 - Qiita |
Docker を使って Dredd で openapi (Swagger) のテストを簡単にできるようにしたよ |
https://qiita.com/ItsukiN32/items/4a92ab911d0e49c21de5
|
DreddハマりどころSwaggerUIとは無関係私が勘違いしていたのですが、Dreddのコマンド中のエンドポイントの指定先をSwaggerUIなどにしてしまうことです。 |
2022-01-29 19:08:39 |
海外TECH |
DEV Community |
Positioning in CSS: Everything you need to know |
https://dev.to/rajatgupta/positioning-in-css-everything-you-need-to-know-fkj
|
Positioning in CSS Everything you need to knowThe CSS position property is used to set position for an element So without further ado let s get the party started There are types of positioning Static PositioningRelative PositioningAbsolute PositioningFixed PositioningSticky Positioning Static PositioningThe below code will not change anything as by default position is set to “static and since the p is a block element each box covers the entire row and the next box appears in the next row lt DOCTYPE html gt lt html lang en gt lt head gt lt meta charset UTF gt lt meta http equiv X UA Compatible content IE edge gt lt meta name viewport content width device width initial scale gt lt title gt Document lt title gt lt style gt box width px height px border style solid border color black background color chocolate position static box left px lt style gt lt head gt lt body gt lt p class box id box gt lt p gt lt p class box id box gt lt p gt lt p class box id box gt lt p gt lt p class box id box gt lt p gt lt body gt lt html gt Relative positioningIn order for the relative positioning to work we have to use top bottom left and right properties For example in the code below I used the “left property on box and as a result the box left a margin of px from its left lt DOCTYPE html gt lt html lang en gt lt head gt lt meta charset UTF gt lt meta http equiv X UA Compatible content IE edge gt lt meta name viewport content width device width initial scale gt lt title gt Document lt title gt lt style gt box width px height px border style solid border color black background color chocolate box left px position relative lt style gt lt head gt lt body gt lt p class box id box gt lt p gt lt p class box id box gt lt p gt lt p class box id box gt lt p gt lt p class box id box gt lt p gt lt body gt lt html gt We can also merge boxes together using this property for example if I set “bottom to px for box it will be leave a margin of px from bottom side and gets merged with box It won t get overlapped properly since there is margin between box and box lt DOCTYPE html gt lt html lang en gt lt head gt lt meta charset UTF gt lt meta http equiv X UA Compatible content IE edge gt lt meta name viewport content width device width initial scale gt lt title gt Document lt title gt lt style gt box width px height px border style solid border color black background color chocolate box bottom px position relative lt style gt lt head gt lt body gt lt p class box id box gt lt p gt lt p class box id box gt lt p gt lt p class box id box gt lt p gt lt p class box id box gt lt p gt lt body gt lt html gt Absolute positioningWe saw in relative positioning that the element is moving relative to its current document flow However in absolute positioning the document flow no longer exists and the element moves either relative to the sides of body or immediate parent element This is very useful it means that we can create isolated UI features that don t interfere with the layout of other elements on the page such as popup information boxes control menus etc Now first let s understand how it moves relative to body in absolute positioning In the below example box will merge with box as the distance of box from parent element that is body is px from top which is same as box While overlapping the element which is positioned win over the non positioned element lt DOCTYPE html gt lt html lang en gt lt head gt lt meta charset UTF gt lt meta http equiv X UA Compatible content IE edge gt lt meta name viewport content width device width initial scale gt lt title gt Document lt title gt lt style gt box width px height px border style solid border color black background color chocolate box position absolute top px lt style gt lt head gt lt body gt lt p class box id box gt lt p gt lt p class box id box gt lt p gt lt p class box id box gt lt p gt lt p class box id box gt lt p gt lt body gt lt html gt Now let s understand how the element moves relative to immediate parent In order for our element to move relative to the parent element other than body we have to give parent element position relative otherwise by default it will move relative to body only In the below code we made div as parent element which contain all these boxes and moved box px from right side of div lt DOCTYPE html gt lt html lang en gt lt head gt lt meta charset UTF gt lt meta http equiv X UA Compatible content IE edge gt lt meta name viewport content width device width initial scale gt lt title gt Document lt title gt lt style gt box width px height px border style solid border color black background color chocolate box position absolute top px right px div background color blue width px position relative lt style gt lt head gt lt body gt lt div gt lt p class box id box gt lt p gt lt p class box id box gt lt p gt lt p class box id box gt lt p gt lt p class box id box gt lt p gt lt div gt lt body gt lt html gt Now I want you to try moving box without giving position relative to div in your code editor and you ll see it is still moving relative to body Just try it out Remember this In case of relative the element moves relative to the normal flow and in case of absolute it moves relative to the sides of body or parent element which contains it Fixed PositioningHere the position of the element is fixed relative to the browser window That means it does not matter how much we scroll the element will remain fixed This means that you can create useful UI items that are fixed in place like persistent navigation menus that are always visible no matter how much the page scrolls lt DOCTYPE html gt lt html lang en gt lt head gt lt meta charset UTF gt lt meta http equiv X UA Compatible content IE edge gt lt meta name viewport content width device width initial scale gt lt title gt Document lt title gt lt style gt box width px height px border style solid border color black background color chocolate box position fixed top px left px div background color blue height px lt style gt lt head gt lt body gt lt div gt lt p class box id box gt lt p gt lt p class box id box gt lt p gt lt p class box id box gt lt p gt lt p class box id box gt lt p gt lt div gt lt body gt lt html gt As you can see below we are scrolling down but box is fixed at the top Sticky Positioning There is another position value available called “sticky which is somewhat newer than the others This is basically a hybrid between relative and fixed position It allows a positioned element to act like it s relatively positioned until it s scrolled to a certain threshold after which it becomes fixed Sticky positioning can be used for example to cause a navigation bar to scroll with the page until a certain point and then stick to the top of the page It s a bit tricky Let s understand it with an example lt DOCTYPE html gt lt html lang en gt lt head gt lt meta charset UTF gt lt meta http equiv X UA Compatible content IE edge gt lt meta name viewport content width device width initial scale gt lt title gt Document lt title gt lt style gt box width px height px border style solid border color black background color chocolate box position sticky top px left px div background color blue height px lt style gt lt head gt lt body gt lt div gt lt p class box id box gt lt p gt lt p class box id box gt lt p gt lt p class box id box gt lt p gt lt p class box id box gt lt p gt lt div gt lt body gt lt html gt ThisIn the above example we replaced “fixed with “sticky and can see that the box is positioned px from top and rather then moving relative to the visible window it moved relative to its actual flow However as we scrolled down it got stuck relative to browser window no matter how low we scroll it will be fixed there It took so much time and energy to write this blog if it added some value then please follow me on twitter therajatgMy tweets will add value to your coding journey on a daily basis |
2022-01-29 10:41:54 |
海外TECH |
DEV Community |
Introduction to Machine Learning with AWS - Part 3 |
https://dev.to/aws-builders/introduction-to-machine-learning-with-aws-part-3-3nnn
|
Introduction to Machine Learning with AWS Part Machine learning ML has become a core technology ingredient in a wide range of use cases from natural language processing and computer vision to fraud detection demand forecasting product recommendations preventive maintenance and document processing Harnessing the benefits of machine learning at scale requires standardizing on a modern ML development process across your business In this blog post we will discuss some of the most important AWS machine learning services that helps customers Modernize their ML development process which can accelerate their pace of innovation by providing scalable infrastructure integrated tooling healthy practices for responsible use of ML a choice of tools accessible to developers and data scientists of all ML skill levels and efficient resource management to keep costs low The Introduction to AWS is a Series containing different articles that provide a basic introduction to different aws topics categories Each article covers the detailed guide on how to work with particular topic category This series aims at providing A Getting Started Guide on Different aws topics categories AWS Machine Learning ServicesAWS infuses intelligence into your contact center and reduce costs with automated ML AWS helps customers apply ML to videos webpages APIs and more to enhance discovery localization compliance and monetization AWS helps accelerate machine learning innovation at scale while reducing costs Apache MXNet on AWSApache MXNet on AWS is a fast and scalable training and inference framework with an easy to use concise API for machine learning MXNet includes the Gluon interface that allows developers of all skill levels to get started with deep learning on the cloud on edge devices and on mobile apps In just a few lines of Gluon code you can build linear regression convolutional networks and recurrent LSTMs for object detection speech recognition recommendation and personalization You can get started with MxNet on AWS with a fully managed experience using SageMaker a platform to build train and deploy machine learning models at scale Or you can use the AWS Deep Learning AMIs to build custom environments and workflows with MxNet as well as other frameworks including TensorFlow PyTorch Chainer Keras Caffe Caffe and Microsoft Cognitive Toolkit AWS Deep Learning AMIsThe AWS Deep Learning AMIs provide machine learning practitioners and researchers with the infrastructure and tools to accelerate deep learning in the cloud at any scale You can quickly launch Amazon EC instances pre installed with popular deep learning frameworks such as Apache MXNet and Gluon TensorFlow Microsoft Cognitive Toolkit Caffe Caffe Theano Torch PyTorch Chainer and Keras to train sophisticated custom AI models experiment with new algorithms or to learn new skills and techniques AWS DeepComposerAWS DeepComposer is the world s first musical keyboard powered by machine learning to enable developers of all skill levels to learn Generative AI while creating original music outputs DeepComposer consists of a USB keyboard that connects to the developer s computer and the DeepComposer service accessed through the AWS Management Console DeepComposer includes tutorials sample code and training data that can be used to start building generative models AWS DeepLensAWS DeepLens helps put deep learning in the hands of developers literally with a fully programmable video camera tutorials code and pre trained models designed to expand deep learning skills AWS DeepRacerAWS DeepRacer is a th scale race car which gives you an interesting and fun way to get started with reinforcement learning RL RL is an advanced machine learning ML technique which takes a very different approach to training models than other machine learning methods Its super power is that it learns very complex behaviors without requiring any labeled training data and can make short term decisions while optimizing for a longer term goal With AWS DeepRacer you now have a way to get hands on with RL experiment and learn through autonomous driving You can get started with the virtual car and tracks in the cloud based D racing simulator and for a real world experience you can deploy your trained models onto AWS DeepRacer and race your friends or take part in the global AWS DeepRacer League Developers the race is on TensorFlow on AWSTensorFlow enables developers to quickly and easily get started with deep learning in the cloud The framework has broad support in the industry and has become a popular choice for deep learning research and application development particularly in areas such as computer vision natural language understanding and speech translation You can get started on AWS with a fully managed TensorFlow experience with SageMaker a platform to build train and deploy machine learning models at scale Or you can use the AWS Deep Learning AMIs to build custom environments and workflows with TensorFlow and other popular frameworks including Apache MXNet PyTorch Caffe Caffe Chainer Gluon Keras and Microsoft Cognitive Toolkit AWS Inferentia AWS Inferentia is a machine learning inference chip designed to deliver high performance at low cost AWS Inferentia will support the TensorFlow Apache MXNet and PyTorch deep learning frameworks as well as models that use the ONNX format Making predictions using a trained machine learning model a process called inference can drive as much as of the compute costs of the application Using Amazon Elastic Inference developers can reduce inference costs by up to by attaching GPU powered inference acceleration to Amazon EC and SageMaker instances However some inference workloads require an entire GPU or have extremely low latency requirements Solving this challenge at low cost requires a dedicated inference chip AWS Inferentia provides high throughput low latency inference performance at an extremely low cost Each chip provides hundreds of TOPS tera operations per second of inference throughput to allow complex models to make fast predictions For even more performance multiple AWS Inferentia chips can be used together to drive thousands of TOPS of throughput AWS Inferentia will be available for use with SageMaker Amazon EC and Amazon Elastic Inference ConclusionAs AWS releases more and more services covering ML they are helping to bridge the gap between having the traditional skill set of a ML engineer to those looking to venture into the ML arena for the first time This is allowing people to become skilled with using ML technology without having to be an expert in the traditional skillset Hope this guide helps you with the Introduction to Machine Learning with AWS Part Let me know your thoughts in the comment section And if you haven t yet make sure to follow me on below handles connect with me on LinkedInconnect with me on Twitterfollow me on github️Do Checkout my blogs Like share and follow me for more content ltag user id follow action button background color important color fac important border color important Adit ModiFollow Cloud Engineer AWS Community Builder x AWS Certified x Azure Certified Author of Cloud Tech DailyDevOps amp BigDataJournal DEV moderator |
2022-01-29 10:11:41 |
海外科学 |
NYT > Science |
Wary Parents Are Target of New Appeals to Vaccinate Children 5-11 |
https://www.nytimes.com/2022/01/29/health/covid-vaccine-children.html
|
Wary Parents Are Target of New Appeals to Vaccinate Children Getting more young school age children vaccinated is crucial for ending the pandemic public health officials say and many are focusing on that group |
2022-01-29 10:10:18 |
海外ニュース |
Japan Times latest articles |
A year after Myanmar coup, families of detainees search for answers |
https://www.japantimes.co.jp/news/2022/01/29/asia-pacific/myanmar-detainees-families-search/
|
A year after Myanmar coup families of detainees search for answersActivists and families say many have disappeared since Myanmar was plunged into turmoil after the military overthrew the elected government led by Aung San Suu |
2022-01-29 19:20:14 |
ニュース |
BBC News - Home |
Ashleigh Barty wins Australian Open |
https://www.bbc.co.uk/sport/tennis/60180955?at_medium=RSS&at_campaign=KARANGA
|
title |
2022-01-29 10:54:50 |
ニュース |
BBC News - Home |
Downing Street parties: Sue Gray won't wait for police inquiry |
https://www.bbc.co.uk/news/uk-politics-60177028?at_medium=RSS&at_campaign=KARANGA
|
certain |
2022-01-29 10:00:59 |
サブカルネタ |
ラーブロ |
ラーメン二郎 桜台駅前店@桜台 |
http://ra-blog.net/modules/rssc/single_feed.php?fid=196023
|
健康診断 |
2022-01-29 10:00:44 |
北海道 |
北海道新聞 |
サッカー代表、南野ら軽めの練習 中山は室内調整 |
https://www.hokkaido-np.co.jp/article/639337/
|
千葉市内 |
2022-01-29 19:18:00 |
北海道 |
北海道新聞 |
子ども向けワクチン接種どう考える 専門家2人に聞く |
https://www.hokkaido-np.co.jp/article/639317/
|
厚生労働省 |
2022-01-29 19:08:21 |
北海道 |
北海道新聞 |
道内コロナ感染者、初の3千人超 札幌1632人、旭川は初の3桁 |
https://www.hokkaido-np.co.jp/article/639292/
|
新型コロナウイルス |
2022-01-29 19:04:07 |
コメント
コメントを投稿