teleren/devto huggingface dataset:
How I helped an insurance company to solve its problem using Machine Learning
Tags: machinelearning, datascience
Published: 2022-12-23 12:25:35

ACME Insurance Inc. is an insurance company that offers affordable health insurance to thousands of customer all over the United States. The company sometimes find it difficult to estimate prices for new customers.

The company always use certain important criteria in estimating prices for new client by always referring back to similar previous historic data and thats quiet time wasting and the accuracies may be unusual. The goal of this project is to help the company way of achieving high accuracy in estimating the annual medical charges of their clients and to also save time. 

I created automated system to estimate the annual medical expenditure for new customers, using information on same criteria or inputs they always use in estimation of their annual charges for thier customers.

The verified historical data of the company was available, consisting actual medical charges incurred by over 1300 customers. But it was difficult to understand the usage trends by age, sex, BMI, smoking habit and location across the regions. with the dataset in hand, I processed the data and performed Exploratory data analysis(EDA) on it.
after, I did the following to achieve my goal ;

1. Explore the data and find correlations between inputs and targets
2. Pick the right model, loss functions and optimizer for the problem at hand
3. Scale numeric variables and one-hot encode categorical data
4. Set aside a test set (using a fraction of the training set)
5. Train the model
6. Make predictions on the test set and compute the loss

Through the project, I learned a lot, from understanding the domain of the dataset to model creation in Jupyter notebook using python and it libraries.

I also worked to gather feedback on the project and made suggestions to the decision makers of the company to know the right things to work on #dataanalysis #machinelearning #datascience 

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yw9arcd1k3hswvjhqfcg.jpeg)
🎅Merry Christmas 🎄🇨🇦🌟✨🍭🍬🍫
Tags: xmas, 2022
Published: 2022-12-23 12:24:10

Merry Christmas And Happy Holidays
May The Christmas Season bring only happiness and joy ti you and your family. [Optical Store In Kitchener](https://www.opticalhouse.ca/)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dea20ps9vce2aou7bp1t.jpg)
9 useful APIs for your next projects
Tags: api, programming, ai, community
Published: 2022-12-23 12:23:50

If you have a list of new software-related projects to start or complete in 2023, these tips will make your life easier!

You probably already know what an API is. But if you need a refreshment, API stands for Application Programming Interface, and it’s a way for two or more pieces of software to communicate with each other.

Here’s a list of useful and cool APIs you can use in your next projects:

- **[Brainshop](https://brainshop.ai/)** – It helps you create chatbots based on AI. The basic plan is completely free.
- **[Cloudmersive API](https://cloudmersive.com/image-recognition-and-processing-api)** – This advanced Machine Learning API helps you with your image recognition and processing needs.
- **[Count API](https://countapi.xyz/)** – It allows you to create simple numeric counters.
- **[Currency converter](https://www.currencyconverterapi.com/)** It’s a simple API for currency conversion.
- **[Flight API](https://flightapi.io/)** – This API gives you all the information about flights: airport, ticket prices, schedule, and flight status, among others.
- **[NASA APIs](https://api.nasa.gov/)** – It gives you access to different types of data about astronomy, space weather, the moon, mars, and much more.
- **[OpenWeather](https://openweathermap.org/api)** – It gives you access to current weather data and hourly, 5-day, and 16-day weather forecasts.
- **[Random user generator API](https://randomuser.me/)** – It allows you to generate placeholder user information. You can get profile photos, names, and more.
- **[Spoonacular API](https://spoonacular.com/food-api)** - It allows you to access over 5k recipes, 2k ingredients, and 600k food products you can use to build a great food-related app.

Find more interesting tips and discussions in the [Codacy Community](https://community.codacy.com/).

Feel free to share the APIs you love and use the most :point_down:
Cool tooltips designed using only CSS
Tags: webdev, css, tooltips, design
Published: 2022-12-23 12:20:32

Beautify your tooltips with customized arrows. 

Do you know how to design tooltips using only CSS?

In the UI design, we often need to show limited information using images or icons. On hovering over it, we can show more information using **tooltips**.

This article will guide you to design different types of tooltip arrows using pure CSS. We will draw arrows on pseudo-selectors like **:before** and **:after** with the absolute position using only CSS.

## We will draw below shapes for the tooltips.

- Triangle
- Right triangle
- Curved
- V-curved
- Circled

For implementation details, [check out our Blog](https://blog.canopas.com/fancy-tooltip-arrows-using-pure-css-e82d8f349e44).
karra jadvalini yaratish
Tags: cpp, beginners, programming
Published: 2022-12-23 11:55:11

```cpp

#include <iostream>
using namespace std;
int main() {
int a;
  cin >> a;
  cout << a  << "*" << 1 << "=" << a * 1 << endl;  
  cout << a  << "*" << 2 << "=" << a * 2 << endl;  
  cout << a  << "*" << 3 << "=" << a * 3 << endl;  
  cout << a  << "*" << 4 << "=" << a * 4 << endl;  
  cout << a  << "*" << 5 << "=" << a * 5 << endl;
  cout << a  << "*" << 6 << "=" << a * 6 << endl;
  cout << a  << "*" << 7 << "=" << a * 7 << endl;
  cout << a  << "*" << 8 << "=" << a * 8 << endl; 
cout << a << "*" << 9 << "=" << a * 9 << endl ;
  
 
  return 0;
  }   

```
bu codimizda bizga `int ` sonni oqib olishimiz kerak!

`cout <<` buyrugi bilan har bir 10 likgacha bilgan sonlarning kopaytiruv darajasi ( javobini ) kiritishimiz kerak 

har bir qatorni alohida ajratishimiz uchun `<<endl` buyruginni kiritib olishimiz zarur!

boshida `a` buyrugini kiritgandim shuning uchun a ni har bir onlikgacha bolgan sonni osha a ga kopaytirib chiqishim kerak !

shuning bilan biz karra  jadvalini yasashni organib oldik!


@dawroun
10 Reason I Like the Go Programming Language
Tags: go, opinion, beginners
Published: 2022-12-23 11:47:53

The Go programming language is popular for it's high performance, and concurrency primitives. But there's so much more to the language than just that!  In this video, I talk about the top ten things I like about Go.

{% youtube https://youtu.be/LltEsGFOASY %}
Spring Framework 6.0.0 compatibility with Java 11
Tags: security, vulnerability, api, spring
Published: 2022-12-23 11:44:19

Hello guys,
In my company we are using Spring and Spring Boot with Java 11, and for now we do not have an option to update to Java 17 for external reasons.

Lately a CRITICAL vulnerability with all the versions under Spring-Web:6.0.0 appeared. We wanted to update to the 6.0.0 version but it is only compatible with Java 17, something that as I already said, for now we cannot do.

I would like to know if there is anything that we can do to avoid that vulnerability. I thought that maybe the Spring team will decide to release a version 5.x.x (that is compatible with Java 11) with that vulnerability fixed or maybe I can change some internal stuff of the Spring library and maybe I could solve the problem for now.

Do you guys have any idea of how can we solve this issue? I really appreciate any help.
Git rebase: the scary command
Tags: git, webdev, beginners, tutorial
Published: 2022-12-23 11:04:20

_git init, git branch mybranch, git checkout mybranch, git add, git commit, git push, git pull, git merge_… These are the [commands](https://www.cristina-padilla.com/gitcommands.html) I use the most and I honestly thought they would be enough (at least while working for the first time in a collaboration project) But all of a sudden reality hit me (in a good sense) and I had to face it: I couldn't run away from git rebase.

Although it might sound scary because it was an unknown commit for me and I didn't really understand the difference between merge and rebase, practice made me finally learn and understand why it is worth using it. 

![Scared cat](https://media.tenor.com/4puBOghdIHQAAAAC/french-bulldog-scared.gif)

**Git rebase** integrates changes from one branch onto another. It is basically like cutting your branch and moving it to the very last commit in main/master. It is an alternative to git merge because it offers a cleaner repo history.

Let's have a look at the following case scenario:

![Branches example](https://community.codenewbie.org/remoteimages/uploads/articles/0ojv5d2j211spskooccp.png)

 I have a new repository that only contains a README file so far. I want to start working on it so I create a branch: _git checkout -b mybranch_

I have switched from _main_ to _mybranch_ and want to start creating files but suddenly another colleague pushes some changes into _main_ (an index.html file) If I pull changes from _mybranch_, Git will inform me that _mybranch_ is “already up to date”: 

![Branch up to date Terminal example](https://community.codenewbie.org/remoteimages/uploads/articles/3hv6siyesp5cpap9x0pa.png)

But of course, if I switch to _main_ and pull the changes, I will see the html file there: 

![Main branch Terminal overview](https://community.codenewbie.org/remoteimages/uploads/articles/my5zecyazqombnn3yv1k.png)

What is happening here? I don't have the latest changes from _main_ because _mybranch_ is behind _main_. How can I fix this? The scary command is everything I need. I only need to type _git rebase main_ and I will automatically move _mybranch_ on top of _main_ getting the latest updates and voilá: I can see now the index.html file on _mybranch_. 

![Git rebase command](https://community.codenewbie.org/remoteimages/uploads/articles/r55jk87nz3xz1n02156k.png)

One lesson learnt, one less problem. What about you? Do you dare putting git rebase into practise?
The real-time applications of Informatica
Tags: beginners, tutorial
Published: 2022-12-23 11:30:27

Informatica Cloud is the cloud-based version of our existing in-house Extract, Transform and Load (ETL) product designed to handle large-scale data operations. Informatica Cloud on-demand subscription service that offers an entire cloud platform for integration and management of data. When you sign up to Informatica Cloud, you use the web device to access the. You can set up connections, create users and run, create programs, schedule, and track tasks. If you're seeking to improve your career and become knowledgeable in Informatica and related areas If so, the [Informatica Training](https://www.edureka.co/informatica-certification-training) is right for you. This course will assist you in achieving top-quality in this area.

Since the beginning businesses have supported their procedures by using the help of an information system. This is particularly about compartmentalizing or requirements of departments as the conditions on the markets and business processes become more complex. But, these systems can no longer function in silos. The company's success depends in large part on its ability to effectively communicate in an efficient way. 

On-time companies ensure consistent easy communication using IT solutions, as well as professional methods that continuously provide essential business processes to provide certain, trustworthy, and readily available information about clients partners, products, and clients. This allows businesses to react quickly, more stable and at a lower cost to the changing demands of consumers as well as changing market conditions and changing competitive risks.

There are three major uses for the Informatica Power Center. It also includes Informatica PowerCenter Server, Informatica Power Center Client Tools, and Informatica PowerCenter Repository.

There are three major uses for the Informatica Power Center. It also includes Informatica PowerCenter Server, Informatica Power Center Client Tools, and Informatica PowerCenter Repository.

The tools for consumers were developed to aid the programmers of Informatica in managing these issues.

- Property of Mapping and Runtime
- Manage Repository
- Monitor Session Execution
- Report Metadata
2 sonidan iborat tortburchak yaratish!
Tags: beginners, cpp, programming
Published: 2022-12-23 11:15:06

```cpp 

#include <iostream>
using namespace std;
int main() {
 int a;
cin >> a;

  cout << a << a << a << a << a << a << endl;
  cout << a << "    " << a << endl;
  cout << a << "    " << a << endl;
cout << a << a << a << a << a << a << endl;



return 0;
  }   

```

bu `cod` imizda sa sal boshqacharoq yol tutamiz

*birinchidan `int` son oqib olamiz keyin esa bizga `cout <<` buyrugi kerak boladi 
*6 qatordan a xarifini bolib, yozib olamiz.
*`console`dagi javobimizda pastki qatorga alohida chiqarilishi uchun bizga ` << endl` buyrugi kerak boladi!
*va tortburchagimiz hosil bolganidan keyin biz `return 0;` belgisini yozib olamiz!
 

doimgiday ooooooxiriga `}` funksiyasini joylaymiz!
 va nixoyat biz qanday qilib tortburchakni hosil qilishni organib oldik!



@dawroun
Flipping Card with CSS and Javascript
Tags: html, css, javascript, webdev
Published: 2022-12-23 11:06:07

Hello everyone, today I'll demonstrate how to make a flip-card using HTML, CSS, and Javascript. The full code will be available at codepen, which I will share at the end of this blog, and I will explain the main CSS section.

Let's get started...
# HTML - 
```html
<div class="card">
   <div class="front">
      {All the content for the front side goes here}
   </div> 
   <div class="back">
      {All the content for the back side goes here}
   </div> 
  <!-- Button to toggle front and back side of the card -->
  <button class="toggle">Toggle Button</button>
</div>
```

# CSS - 
```css
.card{
/* All the card related stylings goes here*
}

/* Front side styling */
.
.
/* Back side styling */
.back{
  /* Hiding the backside initially */
  display:none;
}
.
.
/* Toggle Button Styling */
.
.
/* To show the frontside or backside by 
adding this class using JS */
.show{
  display:block;
}

/* To hide the frontside or backside by 
removing this class using JS */
.hide{
  display:none;
}
/* To flip the card 360deg rotation on Y axis */
.flip__card{
  transform:rotateY(-360deg)
}

/* To change the background image of the card
when the backside is visible */
.change_bg{
  background-image:url("some other image");
}
```

# Javascript - 
```js
const card = document.querySelector(".card");
const frontSide = document.querySelector(".front");
const backSide = document.querySelector(".back");
const toggleButton = document.querySelector(".contact__toggle")

// Adding a click event on the toggle button
toggleButton.addEventListener("click",(e) => {
  /* By switching these classes, the card will spin and its 
   background color will be changed.*/
  card.classList.toggle("flip__card")
  card.classList.toggle("change_bg")

  /* Toggling the hide and show for front and back
   when the front is visible, back will be hidden
   and vice versa */
  frontSide.classList.toggle("hide")
  backSide.classList.toggle("show")

  // changing the button text based on its current side
  e.target.textContent = e.target.textContent === "Contact" ? "User Info" : "Contact"
  // Changing the button background color to match 
  //with the theme
  e.target.classList.toggle("bg-brown")
})
```

# Codepen - 
{% codepen https://codepen.io/shubhamtiwari909/pen/jOpPGBj %}

THANK YOU FOR CHECKING THIS POST
You can contact me on -
Instagram - https://www.instagram.com/supremacism__shubh/
LinkedIn - https://www.linkedin.com/in/shubham-tiwari-b7544b193/
Email - shubhmtiwri00@gmail.com

^^You can help me by some donation at the link below Thank you👇👇 ^^
☕ --> https://www.buymeacoffee.com/waaduheck <--

Also check these posts as well
https://dev.to/shubhamtiwari909/css-iswherehas-and-not-2afd

https://dev.to/shubhamtiwari909/theme-changer-with-html-and-css-only-4144

https://dev.to/shubhamtiwari909/swiperjs-3802

https://dev.to/shubhamtiwari909/going-deep-in-array-sort-js-2n90
What is the future of artificial intelligence?
Tags: ai, android, ios, machinelearning
Published: 2022-12-23 09:41:58

The future of **Artificial Intelligence**(AI) is difficult to predict, but it is likely to play an increasingly important role in a wide range of industries and areas. 

One potential direction for the future of AI is the development of more **advanced machine learning algorithms** that can learn and adapt more quickly and accurately. This could lead to the creation of more intelligent and autonomous systems that can perform tasks and make decisions without human intervention. 

Another possibility is the integration of AI into everyday life through the use of **personal assistant**s and other **consumer-facing technologies**. This could make it easier for people to access information, communicate with others, and perform various tasks using **voice and natural** language interfaces. 

Additionally, AI could be used to address **complex global challenges**, such as **climate change and inequality**, by analyzing large datasets and identifying patterns and trends that could inform policy decisions and help to find solutions. 

Overall, the future of AI is likely to be marked by continued innovation and the development of new technologies that have the potential to transform many aspects of our lives.

To know more: http://bitly.ws/xSNh
ImportError while loading conftest in pycharm-pytest.
Published: 2022-12-23 10:30:31

I have been trying to resolve the following error message when I try to run a test in PyCharm. I tried searching google and worked on the suggestions given in those searches. but still I am not able to resolve this issue. Can someone please help me in this regard. Thanks. 

_/Users/.../.../.../venv/bin/python /private/var/folders/tk/stp2n2bn58jf3m39n_rc_gjh0000gs/T/AppTranslocation/41EBB627-DA12-406A-8365-5F43334BA140/d/PyCharm.app/Contents/plugins/python/helpers/pycharm/_jb_pytest_runner.py --path /Users/.../.../.../tests/step_defs/test_compare_tables.py -- --import-mode=importlib 
Testing started at 10:19 ...
Launching pytest with arguments --import-mode=importlib /Users/.../.../.../tests/step_defs/test_compare_tables.py --no-header --no-summary -q in /Users/.../.../.../tests

ImportError while loading conftest '/Users/.../.../.../tests/step_defs/conftest.py'.
step_defs/conftest.py:4: in <module>
    from package1.package2.pythonfile1.py import test_process_env_details
../tools/get_dataframe.py:1: in <module>
    import mysql.connector
E   ModuleNotFoundError: No module named 'mysql'

Process finished with exit code 4

Empty suite_
What are sealed classes in Java ?
Tags: java, programming, tutorial, beginners
Published: 2022-12-23 10:30:00

Sealed classes are a new feature in Java 17 that allows you to restrict which classes can inherit from a specific class. This can be useful for preventing unintended inheritance and creating more flexible and reusable code.

A sealed class is defined using the sealed modifier, followed by the permits keyword and a list of allowed subclasses. For example, the following code defines a sealed class called Shape and allows only Circle and Rectangle to inherit from it:

```java
sealed class Shape permits Circle, Rectangle {}
```

To use a sealed class, you simply define your subclasses as usual and extend the sealed class. For example:

```java
public final class Circle extends Shape {
    // class implementation goes here
}

public final class Rectangle extends Shape {
    // class implementation goes here
}
```

Any class that tries to inherit from Shape but is not listed in the permits clause will not be allowed, and the code will not compile. This can help prevent unintended inheritance and make your code more robust and maintainable.

{% embed https://youtu.be/oX7dOBVGbcE %}
TypeScript Advanced Concepts: How to Use Utility Types Like a Pro
Tags: typescript, javascript, webdev, beginners
Published: 2022-12-23 10:26:54

[![Watch the video](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ox2dv8hqnjspc4xc82ib.png)](https://www.youtube.com/watch?v=_1YcI9ohazM&list=UULFQkvNcHN5vg3jEoeOb9Tdrw&index=1)
---

##### Must Read If you haven't

###### [3 steps to create custom state management library with React and Context API](https://dev.to/devsmitra/3-steps-to-create-custom-state-management-library-with-react-hooks-and-context-api-1bfh)

###### [How to cancel Javascript API request with AbortController](https://dev.to/devsmitra/how-to-cancel-javascript-api-request-with-abortcontroller-36cm)

###### [Getting started with SolidJs – A Beginner's Guide](https://dev.to/devsmitra/getting-started-with-solidjs-a-beginners-guide-5af4)

---

###### More content at [Dev.to](https://dev.to/devsmitra "Rahul Sharma(DevsMitra)").

###### Catch me on [YouTube](https://www.youtube.com/channel/UCQkvNcHN5vg3jEoeOb9Tdrw?sub_confirmation=1 "Rahul Sharma(DevsMitra)"), [Github](https://github.com/devsmitra "Rahul Sharma(DevsMitra)"), [Twitter](https://twitter.com/devsmitraa "Rahul Sharma(DevsMitra)"), [LinkedIn](https://www.linkedin.com/in/rahul-sharma-18b8b374 "Rahul Sharma(DevsMitra)"), [Medium](https://devsmitra.medium.com "Rahul Sharma(DevsMitra)"), [Stackblitz](https://stackblitz.com/@devsmitra "Rahul Sharma(DevsMitra)"), [Hashnode](https://devsmitra.hashnode.dev "Rahul Sharma(DevsMitra)"), [HackerNoon] (https://hackernoon.com/u/devsmitra "Rahul Sharma(DevsMitra)"), and [Blogspot](https://devsmitra.blogspot.com "Rahul Sharma(DevsMitra)").
FuzzingWeekly CW 51
Published: 2022-12-23 10:20:15

How Fuzzing Helped Me to Get My First Bounty
-> https://infosecwriteups.com/how-fuzzing-helps-me-to-get-my-first-bounty-2c63eb864e08

Hybrid fuzzing: Sharpening the spikes of Echidna
-> https://blog.trailofbits.com/2022/12/08/hybrid-echidna-fuzzing-optik-maat/

Effective Unit Testing for Java Applications: Common Challenges and Solutions
-> https://www.youtube.com/watch?v=rYSvBANQBB0&list=PLI0R_0_8-TV6ln6eVSptEJbmHgajVdj6n&index=3
AWS Certifications
Published: 2022-12-23 10:15:08

This Edureka video on AWS Certifications will provide a complete guide to the different important AWS certifications that you need to know about before you start your career in AWS. Also, in this video, we will understand the benefits and salary trends of AWS certifications.
 



{% embed https://www.youtube.com/watch?v=8HeMJ18xoCw %}