投稿時間:2023-06-14 22:21:33 RSSフィード2023-06-14 22:00 分まとめ(31件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
python Pythonタグが付けられた新着投稿 - Qiita poetryでscipyが入らなかった https://qiita.com/tomuhama/items/c1d89408c8864dcb876d gtltisnotcompatiblewithso 2023-06-14 21:52:33
python Pythonタグが付けられた新着投稿 - Qiita gpt-3.5-turbo-0613でかわいいお天気お姉さんつくったよ https://qiita.com/SatoshiGachiFujimoto/items/f55b4187c9f681fe069a https 2023-06-14 21:49:46
js JavaScriptタグが付けられた新着投稿 - Qiita BigInt と Number の速度差 https://qiita.com/Nabetani/items/6862670dc57eb09ab93d bigint 2023-06-14 21:01:17
Ruby Rubyタグが付けられた新着投稿 - Qiita Rubyがブラウザで動くってことはRubyでプログラミング言語のインタプリタを作れればどんな言語でもブラウザで動かせるのでは...!? https://qiita.com/getty104/items/a5a931cd1d7e967ad9a5 webassemblywasm 2023-06-14 21:56:25
AWS AWSタグが付けられた新着投稿 - Qiita [Public Beta]HCP Vault Secrets使ってみた https://qiita.com/kurono/items/c15ff3143cb553334a15 publiicbeta 2023-06-14 21:41:51
Docker dockerタグが付けられた新着投稿 - Qiita UbuntuのechoをFluentdで捕捉する(docker-compose.ymlサンプルあり) https://qiita.com/t13801206/items/c767314a8e48be05463f dockercompose 2023-06-14 21:40:31
Git Gitタグが付けられた新着投稿 - Qiita [Git] 動作を試す 実行例58:format-patchで作業内容をpatchテキストファイルにまとめて別送付する https://qiita.com/dl_from_scratch/items/21345a134030600a21bb formatpatch 2023-06-14 21:29:06
Ruby Railsタグが付けられた新着投稿 - Qiita Railsでアプリを作る最初の流れ https://qiita.com/kumaryoya/items/7d4ecd597bbd2d134915 railsnewcreatureappcd 2023-06-14 21:58:05
Ruby Railsタグが付けられた新着投稿 - Qiita JavaScriptの基本的な文法 https://qiita.com/sa109/items/e5206edcface7a759c3c const 2023-06-14 21:14:36
技術ブログ Developers.IO [ 速報 ] Amazon CodeGuru Security がプレビューで発表されました! #AWSreInforce https://dev.classmethod.jp/articles/reinforce23-amazon-codeguru-security-available-preview/ amazoncodegurusecurit 2023-06-14 12:05:06
海外TECH Ars Technica Feds tell automakers not to comply with Mass. “right to repair” law https://arstechnica.com/?p=1947712 services 2023-06-14 12:28:27
海外TECH MakeUseOf The 7 Best AI Tools on BoredHumans https://www.makeuseof.com/best-ai-tools-boredhumans/ boredhumansboredhumans 2023-06-14 12:31:18
海外TECH MakeUseOf Get Your Screen Fix: The Best Monitor Deals to Make Your Wallet Happy https://www.makeuseof.com/best-monitor-deals/ happyif 2023-06-14 12:22:20
海外TECH DEV Community Intro to Data Pre-Processing using Quantified Emotion Recognition https://dev.to/lucidmach/intro-to-data-pre-processing-using-quantified-emotion-recognition-4bn4 Intro to Data Pre Processing using Quantified Emotion RecognitionThis blog was originally posted on my learning machine learning blogperhaps the only thing about machine learning that s more important than machine learning itself is data pre processing that s cuz as defined before machine learning is the science math of taking in real world info converting it into numbers and then finding learning a pattern out of itand info out in the real world brings along with it ton of noise Example Data from the Real Worldas an advocate of learning by getting your hands dirty here s an examplethere s something called the russel s circumplexsomething that helps quantify emotionscuz ML algorithms learn best when the data they work with is continuous numbers instead of traditional encoded classification data likewhile the class ified data does represent numbers the numberical value of a class doesn t always represent the intensity of an emotion while russel s model gives you an activation and an pleseantness value that are already intensities of an emotion Unclean Datalet s say we find a dataset with paramenters we are looking forhere the column pic represents an d array of red green and blue pixel values of an image containing an emotion and the rest are pretty straight forward Step Splitting The Datathe whole goal of training an ML model is so that we could us it to actively predict output on unseen data situations a simple way of doing that isthe remaining can be used to value the performance of the model developed Step Dealing with Missing Datanotice that there s some missing data in the age column so there are common ways of dealing with that missing data deleting entire rows if a required column is missingnote works great for super ultra large datasets but since more data better substituting the middle value of the column depends on type of data Step Dealing with Class Datamany a times the data in datasets is class data and while encoded class data might not always accurately represent the intensity of a parameter something is better than nothingthere are common ways of dealing with class data lets take the gender column one hot encodingwhen one column is split into number of class columns like gender has classes male and female so the gender columns gets split into columns a male column and female column label encodingfor columns with binary classes like true or false male or female yes or no etc so that one of the class label is replaced with and the other with Step Feature Scalingdifferent columns usually represent different parameters and not all paraneters have the same proportion assuming a dataset of age and height the age column has a range of to while the height column perhaps has a range of cm to cmwhy is this important when we plot these values without scaling em to the same range it would look likeand let s say we tried to find a line that best fit through the points it would look likehowever if we scaled the inputs to the same range it would look like thiswhich even from a glance we can tell that the line better fits the model i e there is lesser error to predict for unseen datanow feature scaling is commonly done using methods normalization standardizationwhere x is the current input we want to scale here s an example of normalization on the dataset we were working onthis leaves us with a ready for training dataset Step Dealing with the Testing Datawe ve done a lot of pre processing on the training dataset and testing data is going to look like the unclean training dataso we ve to remember toreplace missing data with the middle value of training dataencode class data to match the training datafeature scale using parameters of the training datayou get the point we ve use the exact same operation tools used on the training dataset for the operation we would be doing on the testing datasetyuppp data people shouldn t become doctors and with that we have testing data that is ready to be taken for a ride in our ML model 2023-06-14 12:38:12
海外TECH DEV Community Prompt Engineering: The Future of AI-Driven Development https://dev.to/aws-heroes/prompt-engineering-the-future-of-ai-driven-development-4elm Prompt Engineering The Future of AI Driven DevelopmentChatGPT and other generative AI services have been around for less than a year and it s already taken the world over by storm We see more and more use cases popping up every day on social media showing how these services solve a cool new problem It s thrilling to see the surge of innovation pop up seemingly overnight A couple weeks ago I wrote an article about how ChatGPT changed the way I write software The article discussed some new use cases available at our fingertips and shared a couple of pragmatic examples to get your gears turning Today we re going to take it a step further We re going to discuss how you can write software to take advantage of services like ChatGPT To do that let s walk step by step through an example an unanswered question chat bot What We re BuildingWhenever you go into a busy livestream or popular chatroom you see hundreds of messages flying across the screen every minute It s impossible to carry on a conversation let alone get an answer to a question Moderators do a decent job wading through questions but that s a manual task relying on their judgment and ability to parse through dozens of messages a second Questions get missed and wrong answers are given a lot I want to fix that with an AI powered bot that answers these questions We ll call it the no question left behind bot Here are the requirements Answer any questions that have been asked but received no answerAnswer any questions that have been asked but received an incorrect answerTag the person who asked the unanswered or incorrect question in the responseDo not respond to questions that were answered correctly either by a human or the botRun automatically on a minute interval Before the introduction of generative AI this project would have been next to impossible to build But with proper prompt engineering we can build it in just a couple of hours DISCLAIMER I do not have the full source code available for this project The purpose of this article is to show you how to structure prompts to generative AI services Setting PerspectiveHave you ever told someone to put their engineer hat or their product hat on before asking them a question This helps them get in the right frame of mind or perspective to answer your question When building a house you d get very different answers from the buyer architect and construction crew when you ask describe the kitchen To get the answer you re looking for you need to ask the right person It s very much the same way with ChatGPT When prompting the service you can optionally give it a system role which sets the perspective of the model and directly affects the type of answer you get back But before we go any further let s take a step back and look at the inputs for a chatCompletion using the OpenAI Node js SDK const result await openai createChatCompletion model gpt temperature messages messages This is the call we use to communicate with OpenAI specifically the gpt model which we are all familiar with at this point The temperature field indicates the creativeness of the answers the model provides The lower the number the more creative wild the answers are This value ranges from to and I ve found in general that a value of will consistenly provide quality results The messages field is where the power comes into play You can pass entire conversations into this array giving the model meaningful context more on this later To set the perspective of our call we need to pass in a message with the following properties role system content You are a master trivia player You provide quick to the point answers to any and all questions you see You aren t afraid to correct others when they are wrong By indicating a role of system we set the perspective of the AI model For our no questions left behind bot we want a perspective of someone who is really good at trivia and providing succint answers So we tell it exactly that Context SettingNow that we ve told the AI model how we want it to approach our prompt we need to give it some data to process We re building a chat bot so let s feed it an array of json objects representing the chat history Our raw data would look something like this username allenheltondev message Does anyone know what color you get when you mix purple and green username andmoredev message definitely pink username astuyve message How many pounds are in a stone username allenheltondev message Thanks And how would you center a div in css username astuyve message display flex align items center justify content center There s a lot going on in that conversation We have a clearly incorrect answer in there a question that wasn t answered at all and a question answered correctly Our chat bot needs to correctly answer the color question give an answer to the weight question and skip over the css one But before we do that we need to provide the data to ChatGPT To do that we must add another message to the message array const chatHistory await getChatHistory chatId const historyMessage role user content Here is a chat history for the past minute It s an array of json objects indicating the user that sent the message and what message they sent JSON stringify chatHistory messages push historyMessage This will give ChatGPT the necessary information for it to do what we want We still haven t asked it to do anything yet but we ve told it how we want it to approach the incoming prompt and have given it all the data it needs to do something meaningful Output FormatWe re writing an app Apps need consistent behavior As I mentioned before ChatGPT wanders on occasion and provides some interesting answers every now and then To get around this we need to provide it with a schema to structure its output We want a strongly defined schema that we can validate to guarantee the answers we are receiving have all the information we expect So let s define our desired output as a json schema schema title MessageFormat type array items type object properties username type string description Username of the person sending a message message type string description Message sent to all users in the chat room required username message We can provide this schema to ChatGPT as another message in our messages array so it knows how to format the generated responose Additionally we can use the schema to validate the output afterward This way we can guarantee downstream services are getting the data they expect const messageSchema require messages json existing codeconst outputMessage role user content Here is a MessageFormat json schema Please provide an answer in this format when asked to respond with MessageFormat schema messageSchema messages push outputMessage Asking the QuestionNow that we ve set the perspective provided the contextual data and given the desired output format we now can ask our question Believe it or not this is the easy part We just need to remember the other pieces of data we ve provided in the messages array so we can reference them appropriately The question is built in the same format as our other messages but this time we ll ask it to do what we want role user content Answer any unanswered or incorrect questions from that chat history Be sure to tag the user who asked the question in your answers use username to tag the user The answers you come up with should come from a bot with the username NoQuestionsLeftBehindBot Structure your answer in the MessageFormat schema You see here that we reference the contextual data as that chat history The model knows from the entire array of provided data what the chat history is so we can refer to it simply Same case for the output format we ve already told it how to structure the response when told to use the MessageFormat schema Validating the ResponseAs I mentioned earlier you should validate the format of the response to guarantee you received data in the correct shape To do this in Node js we use ajv as our validator const Ajv require ajv const addFormats require ajv formats const messageSchema require messages json const ajv new Ajv addFormats ajv code to create message arrayconst result await openai createChatCompletion model gpt temperature messages messages try const answerArray JSON parse result data choices message content const validate ajv compile messageSchema const valid validate answerArray if valid throw new Error Invalid data format return answerArray catch err console error err throw new Error Invalid data format If we don t recieve data in the correct format we can retry up to a set number of times before failing execution and notifying a human But in the likely event that we do receive data in the format we expected we can push it on to downstream services In the case of our bot that would be sending these messages over a WebSocket connection to push the answers straight to the browsers of the people connected to the chat room Holding ConversationsEverything we walked through was for a single prompt The combination of the perspective data output format and question are considered a prompt But there are many use cases where you need to continue the conversation and build on the answers provided from ChatGPT When ChatGPT gives you an answer it will return a message in the same format we ve been building ourselves The only difference is the role property will be set to assistant to indicate the answer came from ChatGPT itself I built a conversational Lambda function in my serverless toolbox that will maintain the back and forth between you and ChatGPT It records all messages recieved from ChatGPT and all the questions you ve asked it in chronological order Every time you call it it adds to the existing conversation allowing you to provide the full conversation to the model in a hands off way You can use the skills we just learned above in conjuction with this Lambda function to build powerful conversations with AI SummaryBuilding prompts is much more difficult than you d expect The easy to use user interface of OpenAI s website has given a false impression of how easy it is to communicate and get answers back from a generative AI service Prompting requires multiple pieces checks and balances and a little bit of know how to get answers in the right perspective and shape you d expect Much like programming we aren t going to be experts on day one It takes practice and experimentation to know exactly how to get the type of data you want out of these services For example it took many iterations for me to reach a result from our chat bot above that results in the following output username NoQuestionsLeftBehindBot message allenheltondev you get dark gray when mixing purple and green username NoQuestionsLeftBehindBot message There are pounds in a stone astuyve As with most SaaS offerings ChatGPT and other generative AI services will continue to get better over time More things will be handled for us reasoning will become better and it might even tell you how to prompt it better But one thing is for sure AI is not going away It s going to continue to grow in popularity and availability So get in now while we re still pioneering Jump in build a couple apps and be amazed at the new capabilities we ve just recently unlocked Happy coding 2023-06-14 12:07:13
Apple AppleInsider - Frontpage News SanDisk Pro G40 SSD Review: Exceptional speed and resilience https://appleinsider.com/articles/23/06/14/sandisk-pro-g40-ssd-review-exceptional-speed-and-resilience?utm_medium=rss SanDisk Pro G SSD Review Exceptional speed and resilienceThe SanDisk Pro G SSD offers fast and secure data transfer exceptional durability and versatility with an audience of professional content creators in mind In fast paced content creation rules the internet through short term video and amateurs and influencers alike find themselves needing a way to securely save their data It s become more and more essential for digital creators to be able to carry around their content with their portable workstations Western Digital s SanDisk Professional brand is all about creating digital storage solutions for content creators and professionals and we can see that in the G SSD As a high speed extremely portable drive it does the job of fueling productivity for creatives coming in TB TB and TB versions Read more 2023-06-14 12:53:32
Apple AppleInsider - Frontpage News Apple has invested over $200 million in its Racial Equity and Justice Initiative [u] https://appleinsider.com/articles/23/06/14/apple-has-invested-over-200-million-in-its-racial-equity-and-justice-initiative?utm_medium=rss Apple has invested over million in its Racial Equity and Justice Initiative u Apple has announced a further million for its initiative to support minority businesses and says this brings its total investment to twice the originally planned million Source AppleApple s Racial Equity and Justice Initiative REJI was formed in June with a remit to support education and justice reform Initially concentrating on the US REJI has now expanded to Mexico Australia and the UK Read more 2023-06-14 12:58:46
海外TECH Engadget EU could breakup Google’s ad business over antitrust violations https://www.engadget.com/eu-could-breakup-googles-ad-business-over-antitrust-violations-124549344.html?src=rss EU could breakup Google s ad business over antitrust violationsEurope has accused Google of abusive practices in online advertising technology that could lead to its ad business being split up the EU Commission wrote in a statement of objections It found preliminarily that since Google is unlikely to change its behavior only the mandatory divestment of part of its services would address competition concerns Google is present at almost all levels of the so called adtech supply chain executive VP Margrethe Vestager said in a statement Our preliminary concern is that Google may have used its market position to favor its own intermediation services Not only did this possibly harm Google s competitors but also publishers interests while also increasing advertisers costs Google s ad business is now under attack on several fronts Earlier this year the US Department of Justice DoJ sued Google to break up its ad business accusing it of illegally monopolizing the market That in turn forced key ad tech rivals to abandon the market dissuade new ones from joining and left the few remaining competitors marginalized and unfairly disadvantaged the regulator said There is nothing wrong with being dominant as such What our investigation has shown though is that Google appears to have abused its market position It did so by ensuring that both its intermediation tools on the buy side and on the sell side would favour AdX in the “matching auctions The EU Commission said Google is dominant in virtually all parts of adtech via services for both advertisers and publishers along with an ad exchange called AdX That would be fine by itself but it accused Google of abusing its market position by making sure both its buy and sell side intermediation tools would favor its own exchange In other words we are concerned about two potentially anticompetitive conducts by Google which are both about favoring AdX the Commission wrote In one case AdX was able to bid after all other bidders had done so and in another it was informed in advance of the value of the best bids from rivals On the supply side Google Ads placed bids nearly exclusively on its own exchange giving it a significant advantage over competitor s exchanges according to the EU The Commission said that any remedy demanding Google change its behavior would be ineffective The Commission s preliminary view is therefore that only the mandatory divestment by Google of part of its services would address its competition concerns according to the statement of objections Google will now be able to respond to the complaint before any judgement is issued On top of being split up the company could face a fine of up to percent of its yearly global turnover pending any appeal It s unusual for the EU to suggest any remedy ahead of a guilty judgement The Wall Street Journal noted Engadget has reached out for a statement from Google This article originally appeared on Engadget at 2023-06-14 12:45:49
海外TECH Engadget Vodafone and Three plan to merge into the UK's largest mobile network https://www.engadget.com/vodafone-and-three-plan-to-merge-into-the-uks-largest-mobile-network-123642148.html?src=rss Vodafone and Three plan to merge into the UK x s largest mobile networkVodafone has announced its intentions to merge with Three pulling together the UK s two remaining standalone mobile networks The move comes in a market that has seen major consolidations in recent years between Virgin Media s merger with O and BT Group s purchase of EE If regulators approve the deal Vodafone and Three s new company will become the largest mobile phone operator in the UK with an estimated million customers nbsp Three UK and Vodafone UK currently lack the necessary scale on their own to earn their cost of capital This has long been a challenge for Three UK s ability to invest and compete Three Owner CK Hutchinson Group Co Managing Director Canning Fok said in a statement Together we will have the scale needed to deliver a best in class G network for the UK transforming mobile services for our customers and opening up new opportunities for businesses across the length and breadth of the UK Vodafone will own percent of the company while CK Hutchinson controls the rest nbsp The merger with Vodafone isn t the first time Three has tried to couple up with a competitor In its parent company announced plans to buy O for £ billion billion but the European Commission and Competition and Markets Authority CMA blocked the purchase over concerns of reduced competition and higher prices However O was able to merge with Virgin Media in after the CMA determined that similar concerns were unfounded Vodafone and Three are attempting to sweeten the latest deal with a promise to invest £ billion billion across ten years in the UK s G infrastructure in line with the government s targets This article originally appeared on Engadget at 2023-06-14 12:36:42
Cisco Cisco Blog Overcoming the Three Hard Truths of Multicloud Security https://feedpress.me/link/23532/16190105/overcoming-the-three-hard-truths-of-multicloud-security Overcoming the Three Hard Truths of Multicloud SecurityThe multicloud world is ever evolving Learn more about the truths and challenges organizations face when securing workloads in multicloud environments and how to overcome them in this blog 2023-06-14 12:00:47
海外科学 NYT > Science Tensions Rise Over Big Oil’s Role at COP28 Climate Talks https://www.nytimes.com/2023/06/14/climate/oil-fossil-fuel-climate-cop28.html objections 2023-06-14 12:33:29
海外科学 NYT > Science New Obesity Drugs Come With a Side Effect of Shaming https://www.nytimes.com/2023/06/14/health/obesity-drugs-wegovy-ozempic.html New Obesity Drugs Come With a Side Effect of ShamingWegovy and other drugs expose a social tension between a quest to medicate illness and a stigmatizing belief that obese people lack sufficient willpower to lose weight 2023-06-14 12:26:50
ニュース BBC News - Home The bright and brilliant athletes killed in Nottingham https://www.bbc.co.uk/news/uk-england-nottinghamshire-65900995?at_medium=RSS&at_campaign=KARANGA barnaby 2023-06-14 12:19:50
ニュース BBC News - Home Vodafone Three deal to create UK's largest mobile firm https://www.bbc.co.uk/news/business-65842845?at_medium=RSS&at_campaign=KARANGA customer 2023-06-14 12:31:36
ニュース BBC News - Home Asylum target to fail at current rate - Suella Braverman https://www.bbc.co.uk/news/uk-politics-65904225?at_medium=RSS&at_campaign=KARANGA claims 2023-06-14 12:02:49
ニュース BBC News - Home Phillip Schofield: ITV boss tells MPs she did not turn a blind eye to affair https://www.bbc.co.uk/news/entertainment-arts-65889240?at_medium=RSS&at_campaign=KARANGA controversial 2023-06-14 12:23:53
ニュース BBC News - Home John Romita Sr: James Gunn leads tributes to Marvel Comics 'genius' https://www.bbc.co.uk/news/entertainment-arts-65900673?at_medium=RSS&at_campaign=KARANGA wolverine 2023-06-14 12:47:41
ニュース BBC News - Home Using AI for loans and mortgages is big risk, warns EU boss https://www.bbc.co.uk/news/technology-65881389?at_medium=RSS&at_campaign=KARANGA vestager 2023-06-14 12:34:53
ニュース BBC News - Home Chelsea legend Hollins dies aged 76 https://www.bbc.co.uk/sport/football/65904644?at_medium=RSS&at_campaign=KARANGA announces 2023-06-14 12:27:06
ニュース BBC News - Home What we know so far https://www.bbc.co.uk/news/uk-65890403?at_medium=RSS&at_campaign=KARANGA nottingham 2023-06-14 12:34:30
ニュース BBC News - Home Nottingham: Students speak of grief after pair killed in city https://www.bbc.co.uk/news/uk-england-nottinghamshire-65904235?at_medium=RSS&at_campaign=KARANGA barnaby 2023-06-14 12:21:53

コメント

このブログの人気の投稿

投稿時間:2021-06-17 05:05:34 RSSフィード2021-06-17 05:00 分まとめ(1274件)

投稿時間:2021-06-20 02:06:12 RSSフィード2021-06-20 02:00 分まとめ(3871件)

投稿時間:2020-12-01 09:41:49 RSSフィード2020-12-01 09:00 分まとめ(69件)