投稿時間:2023-05-23 05:17:52 RSSフィード2023-05-23 05:00 分まとめ(22件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
python Pythonタグが付けられた新着投稿 - Qiita GitHubのStarがいつ付けられたか確認する方法 https://qiita.com/nabenabe0928/items/9d5a0240179498f6f477 ssbfromargparseimportarg 2023-05-23 04:21:36
海外TECH DEV Community Ensemble of RandomForest GradientBoost CatBoost https://dev.to/subhashishmahapatra/ensemble-of-randomforest-gradientboost-catboost-4l9d Ensemble of RandomForest GradientBoost CatBoost What I builtI built an ensemble of machine learning models using Random Forest Gradient Boosting and CatBoost regressors to predict a target variable The models are trained on a dataset and their predictions are combined to create an ensemble prediction The mean squared error MSE is calculated to evaluate the performance of each individual model and the ensemble Category Submission Wacky Wildcard App Link Screenshots DescriptionIn this project I developed an ensemble of machine learning models using Random Forest Gradient Boosting and CatBoost regressors The goal was to predict a target variable based on a given dataset The ensemble approach combines the predictions of multiple models to create a more robust and accurate prediction The project involves several steps Data preprocessing The dataset is loaded and missing values are handled Categorical variables are encoded using label encoding and numerical variables are imputed with mean values Model training Three models Random Forest Gradient Boosting and CatBoost are instantiated and trained on the preprocessed data The models learn the patterns and relationships in the data to make predictions Model evaluation The trained models are evaluated using mean squared error MSE on a test set The MSE provides a measure of how well the models perform in predicting the target variable Ensemble creation An ensemble is created by combining the predictions of the three models The ensemble prediction is calculated as the average of the individual model predictions Ensemble evaluation The MSE is calculated for the ensemble prediction to assess its performance compared to the individual models The results show the MSE for each individual model Random Forest Gradient Boosting and CatBoost and the MSE for the ensemble prediction The lower the MSE the better the model s performance in predicting the target variable Link to Source Code Permissive LicenseMIT Background What made you decide to build this particular app What inspired you The motivation behind building this ensemble of machine learning models was to improve the accuracy and robustness of predictions for a specific target variable By combining the strengths of different models the ensemble approach can often outperform individual models and provide more reliable predictions The inspiration for this project came from the need to create a powerful predictive model that can handle complex relationships in the data Random Forest Gradient Boosting and CatBoost are popular and effective machine learning algorithms that have been widely used for regression tasks By leveraging the strengths of these algorithms and combining their predictions we can potentially achieve better predictive performance How I built it How did you utilize GitHub Actions or GitHub Codespaces Did you learn something new along the way Pick up a new skill To build this ensemble of machine learning models I used Python programming language and several libraries NumPy and Pandas for data manipulation and preprocessingScikit learn for model training evaluation and imputationCatBoost for the CatBoostRegressor modelMatplotlib or Seaborn for data visualization not explicitly mentioned in the code I utilized Jupyter Notebook or any other Python IDE to write and run the code The code snippet provided in the question was executed step by step Throughout the process I learned and applied various techniques such as handling missing values label encoding categorical variables imputing numerical variables training and evaluating regression models and creating an ensemble prediction I might have utilized GitHub Actions or GitHub Codespaces to automate certain tasks or for collaborative development but the code snippet does not explicitly mention it Additional Resources InfoIf you are interested in learning more about ensemble methods or the machine learning models used in this project here are some additional resources Scikit learn documentation CatBoost documentation Kaggle tutorials and courses on machine learning Machine Learning Mastery blog These resources can provide further insights and help you explore the topic in more detail Happy learning and experimenting with ensemble methods and machine learning 2023-05-22 19:34:07
海外TECH DEV Community Go is Not Java https://dev.to/jarrodhroberson/go-is-not-java-1bd8 Go is Not Java TL DRStop posting about “Patterns in Go that are nothing more than verbose Java boilerplate ported to Go syntax People keep posting “Patterns in Go XXXXX articles They are not even Object Oriented Patterns but people keep posting them as they are Those “patterns are not written in idiomatic for Go And even if they were as it is very easy to discover Go is not an Object Oriented language or is it What is Object Oriented then The language decisions that were made when the Go syntax was created were a direct reaction to the the wasteful verbose boilerplate of C and ironically inheritance of the same things in Java Object Oriented programming is actually not even about the Objects it is about message passing I regret the word object It gets many people to focus on the lesser idea The real issue is messaging Messaging is the abstraction of the communication mechanism It s what allows different parts of a system to interact without knowing anything about each other That s the power of objects and it s what makes them so useful ーAlan Kay in an interview with Peter Seibel for Dr Dobb s Journal in So why are C and Java called “Object Oriented I made up the term object oriented and I can tell you I didn t have C in mindーAlan Kay OOPSLA If C is not what you should think about when hearing “Object Oriented then neither is Java Especially since Java does not have “message passing Java and C make you think that the new ideas are like the old ones Java is the most distressing thing to hit computing since MS DOS ーAlan Kay in an interview with Peter Seibel for Dr Dobb s Journal in Guess what does Go Specifically goroutines and they were inspired by Erlang processes Does that make Go “Object Oriented by the definition of the creator of the term Not by itself but it does make it considerably more “Object Oriented than C or Java Especially whey they disavow both languages as meeting their original conceptual criteria Way more if you consider other statements he made on the definition later Lets look for more evidence to support my argument So what should C and Java be called Well that is enough for another article or more but anything else would be a way better term given what the inventor of the term says I personally think “Class Type Oriented would be semantically more appropriate considering Alan Kay focuses on the term “class even less than “object and C and Java are all about classes and type systems first and foremost and objects are just a side effect of instantiating classes to them So what does Alan Kay think defines an “Object Oriented language in his own words OOP to me means only messaging local retention and protection and hiding of state process and extreme late binding of all things ーAlan Kay from an email to Stefan Ram on How would you do that in Go Make every struct field non exported starts with a lowercase letter in its name and have nothing but exported functions that work with the hidden data Make every function take an Interface and return nothing but struct that implements an exported Interface To spell it out only messaging Export only functions and Interface which is just a collection of function signatures that are public so you are effectively passing functions or collection of functions to functions thus messaging local retention and protection and hiding of state process non exported struct fields meets all these criteria outside the package level package local extreme late binding of all things this one is one that is tricky from a practical stand point Alan Kay admits that difficulty is what motivates this requirement “ I m not against types but I don t know of any type systems that aren t a complete pain so I still like dynamic typing from an email to Stefan Ram on The original design of the Go language to allow inference of Interface implementation via “duck typing was to eliminate a lot of the pain mostly boilerplate associated with static typing Go is a static type safe language it does not do exclusively late binding much less extremely For non trivial sized code bases you find out very quickly whatever you are gaining with extremely late binding you lose much more by not having compile time checks In Go there are ways to do late binding but you have to use interface or with generics any in all those places which makes you question your choices in life very quickly duck typing and now generics is a decent compromise between the two extremes So what languages are “Object Oriented as per clarifying statements by the originator of the term The one that I am most familiar with because I have written real world production applications with is Erlang I learned it because it was created for real world scenarios that needed “nines uptime I learned it because thing I needed to create it needed similar uptime I am sure that other Functional languages will be mentioned in the comments but it is the only one I have first hand experience with in a deployed commercial production environment As a former Java main it is embarrassing …What you are pushing is not even “Object Oriented it is a perversion of it to the point that it is not even recognizable It is especially embarrassing when your implementation does not even begin to use Go idioms and ignores go specific things that were implemented specifically to do the thing you think you are being “informative about and showing your competence when you are just exposing the opposite and promoting misinformation to the most vulnerable those that know less then you Providing LLM with even more misinformation at the same time Please stop pushing “Object Oriented Pattern Implementations on Go like you are informing the ignorant and unwashed masses that have been using Go for the past years and saving them from themselves It is embarrassing I say that as a former Java main myself And you wonder why Java programmers get a bad rap What triggered the compulsion to post this article Let us take the most beloved Gang of Four Pattern of all time Especially to the Java faithful The one most people have their first epiphany with when introduced to “Patterns Of Reusable Design probably because it is the easiest to comprehend Singleton Just to make sure my point is misinterpreted this is not about Singleton My point is about the articles that are nothing more than terrible ideas in Java ported to Go syntax For this example Let us ignore the fact that it was a terrible anti pattern when it was first documented because it is by definition global state and the goto Java pattern “Singleton Considered Harmful has been a thing for decades See what I did there goto singletonLet us also ignore the fact that in the JVM you can not even implement Single correctly because by design the JVM can not guarantee that one and only one instance of a class is ever created Here is a hint to the all the self professed Java experts that are about to write a comment about how I am wrong Multiple Classloaders If you see someone post “Patterns in Go Singleton first look at the implementation they post if you do not see sync Once Once anywhere in the code That is what you should call them out on their promotion of misinformation The hubris in posting a “teaching article about something they barely know the basics on That is a malicious disservice to those that know even less than they do The rest of the internet has already proven all the other points that is why I prefaced this with “Let us ignore … caveats I tried to research everything in this article for factual accuracy but I am sure the internet will tell me what their opinion about it is If there are any factual inaccuracies and you want to point them out in the comments provide the source and I will correct them Otherwise do not waste everyone else s time If it is important enough to correct it is important enough to site sources like I did for the quotes and technical specs 2023-05-22 19:04:14
海外TECH DEV Community Automate Kubernetes Deployment using Terraform and Github Actions https://dev.to/chefgs/automate-kubernetes-deployment-using-terraform-and-github-actions-3m5c Automate Kubernetes Deployment using Terraform and Github Actions GitHub Action Dev Submission What I builtI ve created Terraform code that will create a namespace and deploys the Nginx server in the minikube cluster and TF code verification and deployment has been automated using GitHub actions How I builtCreated a GitHub Actions workflow using the Marketplace Github actions plugins actions checkout v gt to Checkout the codemedyagh setup minikube v gt to setup minikubeAzure setup kubectl v gt to setup kubectlhashicorp setup terraform v gt to setup terraformThis workflow can be used in development environments in which an Infra developer can create the Terraform code to deploy kubernetes workload Once after creating the tf code the developer can trigger the Terraform workflow that will do the CI for Terraform code and deploy the infra in minikube The kube config context has been created as a variable in Terraform so it can be overridden with other Kubernetes Cluster config and contexts from Cloud providers like Amazon EKS or Azure AKS or GCP GKE Clusters Category SubmissionDIY Deployments App LinkSource code for the Repo is available hereGithub Action Workflow Yaml Screenshots Description Triggering the WorkflowThis workflow can be triggered from the actions tab by providing the Terraform code directory as an input Refer the screenshot above So it will run the below steps in the directory provided as input Workflow installs minikube kubectl and terraform CLI executables needed to be used by the rest of workflowIt runs terraform init command to download the kubernetes providerThen runs terraform validate command to check the tf code is valid or notAfter that it runs terraform plan and terraform apply commands and performs the Kubernetes namespace creation and deploys the nginx server Workflow also has terraform destroy command that deletes the kubernetes infra created in the workflow Workflow DispatchThis workflow uses workflow displatch Github syntax It is the sub block inside the on event triggering block in which we can specify what are the inputs needed to trigger the workflow In the on event block workflow dispatch section we will be adding the inputs directory path on which we are going to run our Terraform code validationIt is defaulted to the kubernetes directory present in the repo for the ease of demo purpose Link to Source CodeSource code for the Repo is available hereGithub Action Workflow LogGithub Action Workflow Yaml Permissive LicenseMIT License BackgroundAs mentioned earlier This workflow or pipeline can be configured for testing the terraform code pushed by DevOps engineers SREs Developers and can be triggered whenever there is new tf code is pushed into a specific branch for Kubernetes workload management Additional Resources InfoTerraform Kubernetes ProviderWorkflow Dispatch InputsJobsTerraform Market place Action 2023-05-22 19:03:40
海外TECH WIRED Leaked EU Document Shows Spain Wants to Ban End-to-End Encryption https://www.wired.com/story/europe-break-encryption-leaked-document-csa-law/ Leaked EU Document Shows Spain Wants to Ban End to End EncryptionIn response to an EU proposal to scan private messages for illegal material the country s officials said it is “imperative that we have access to the data 2023-05-22 19:23:57
ニュース BBC News - Home Junior doctors in England announce new three-day strike https://www.bbc.co.uk/news/health-65673576?at_medium=RSS&at_campaign=KARANGA england 2023-05-22 19:27:06
ニュース BBC News - Home Chelsea Flower Show: King views tributes to late Queen at Flower Show https://www.bbc.co.uk/news/uk-65672382?at_medium=RSS&at_campaign=KARANGA chelsea 2023-05-22 19:29:36
ニュース BBC News - Home Everton reach exclusivity agreement with MSP over investment https://www.bbc.co.uk/sport/football/65674665?at_medium=RSS&at_campaign=KARANGA Everton reach exclusivity agreement with MSP over investmentEverton have reached an exclusivity agreement with New York based company MSP Sports Capital for investment in the club BBC Sport understands 2023-05-22 19:06:14
ニュース BBC News - Home Juventus docked 10 points in Serie A at new hearing into transfer dealings https://www.bbc.co.uk/sport/football/65677783?at_medium=RSS&at_campaign=KARANGA hearing 2023-05-22 19:35:10
ビジネス ダイヤモンド・オンライン - 新着記事 吉野家、すき家、松屋…値上げ時代の「圧倒的な勝ち組1社」の正体は? - コロナで明暗!【月次版】業界天気図 https://diamond.jp/articles/-/323190 吉野家、すき家、松屋…値上げ時代の「圧倒的な勝ち組社」の正体はコロナで明暗【月次版】業界天気図新型コロナウイルスの感染症法上の位置付けが類に移行したことで、コロナ禍によって大打撃を受けた業界・企業の業績の完全復活に対する期待が高まってきた。 2023-05-23 04:50:00
ビジネス ダイヤモンド・オンライン - 新着記事 ヤマト・佐川の決算に「減収・減益」散見…EC特需に沸いた物流業界に何が起きている? - ダイヤモンド 決算報 https://diamond.jp/articles/-/323298 2023-05-23 04:45:00
ビジネス ダイヤモンド・オンライン - 新着記事 節税効果大の「住宅ローン控除」で、絶対見落としてはいけない6条件【2023年最新版】 - 税務のオキテ https://diamond.jp/articles/-/323121 住宅ローン 2023-05-23 04:40:00
ビジネス ダイヤモンド・オンライン - 新着記事 「買う気ないのに…」営業トークに自信ありの人ほど顧客の感触をはき違える理由 - トンデモ人事部が会社を壊す https://diamond.jp/articles/-/323230 見せかけ 2023-05-23 04:35:00
ビジネス ダイヤモンド・オンライン - 新着記事 【無料公開】大樹生命社長が“低発展”挽回策を力説、「営業活動の量や質で日本生命との差はない」 - Diamond Premiumセレクション https://diamond.jp/articles/-/323174 diamond 2023-05-23 04:30:00
ビジネス ダイヤモンド・オンライン - 新着記事 日本株「33年ぶりの高値更新」は本物か、年後半下落の不安要因 - 政策・マーケットラボ https://diamond.jp/articles/-/323331 日経平均株価 2023-05-23 04:25:00
ビジネス ダイヤモンド・オンライン - 新着記事 24年米大統領選「再出馬すべきでない」が7割、バイデン氏は“消去法の大統領”を超えられるか - みずほ安井のHELP!アメリカ政治経済 https://diamond.jp/articles/-/323296 大統領選挙 2023-05-23 04:20:00
ビジネス ダイヤモンド・オンライン - 新着記事 三菱商事が純利益1兆円突破!バフェットが見初めた「日本独自」の強みとは - 今週のキーワード 真壁昭夫 https://diamond.jp/articles/-/323295 三菱商事が純利益兆円突破バフェットが見初めた「日本独自」の強みとは今週のキーワード真壁昭夫三菱商事の年月期連結決算は、初めて純利益が兆円を超えた。 2023-05-23 04:15:00
ビジネス ダイヤモンド・オンライン - 新着記事 G7広島サミットを彩った首脳の「スーツ着こなし」対決!ベストドレッサーは? - News&Analysis https://diamond.jp/articles/-/323319 G広島サミットを彩った首脳の「スーツ着こなし」対決ベストドレッサーはNewsampampAnalysisG広島サミット先進カ国首脳会議が月日、閉幕した。 2023-05-23 04:12:00
ビジネス ダイヤモンド・オンライン - 新着記事 関関同立+近大「就職先企業・団体」ランキング2022最新版!関東私大と共通する意外な傾向とは? - 親と子のための大学研究2023 https://diamond.jp/articles/-/323326 関関同立近大「就職先企業・団体」ランキング最新版関東私大と共通する意外な傾向とは親と子のための大学研究コロナ禍が続く「不確実性」の中で就活をした主要大学の学生は、どのような企業・団体を選んだのだろうか。 2023-05-23 04:10:00
ビジネス ダイヤモンド・オンライン - 新着記事 関関同立+近大「就職先企業・団体」ランキング2022最新版【全20位・完全版】 - 親と子のための大学研究2023 https://diamond.jp/articles/-/323305 関関同立近大「就職先企業・団体」ランキング最新版【全位・完全版】親と子のための大学研究コロナ禍が続く「不確実性」の中で就活をした主要大学の学生は、どのような企業・団体を選んだのだろうか。 2023-05-23 04:10:00
ビジネス ダイヤモンド・オンライン - 新着記事 チャットGPTにファンドを作らせたら「8週間で+4.9%」、人気上位10ファンドを蹴散らした - DOL特別レポート https://diamond.jp/articles/-/323084 2023-05-23 04:05:00
ビジネス 東洋経済オンライン 大混雑なのに運行本数減らした「江ノ電」戦略の妙 観光客増えすぎて住民が乗車できない例も | ローカル線・公共交通 | 東洋経済オンライン https://toyokeizai.net/articles/-/673810?utm_source=rss&utm_medium=http&utm_campaign=link_back 東洋経済オンライン 2023-05-23 04:30:00

コメント

このブログの人気の投稿

投稿時間: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件)