Hacker rank java and python solutions , code jam 2019 all rounds problems and solutions , hash code 2019 and world finals, Project euler ,spoj problem solutions , other programing events info ,blogs etc.
hacker rank python(swap case)solution
Get link
Facebook
X
Pinterest
Email
Other Apps
-
SWAP CASE
def swap_case(s):
a = ""
for let in s:
if let.isupper() == True:
a+=(let.lower())
else:
a+=(let.upper())
return a
Domains Of AWS :- 1. Compute 2. Migration 3. Security and Identity compliance 4. Storage 5. Networking and Content Delivery 6. Messaging Domain 7. Database Domain We will discuss about every Domain of AWS in this post . So let's start . AWS SERVICES - A. EC2 - Amazon Elastic Compute Cloud (Amazon EC2 ) is a web service that provides secure, scalable compute capacity in the cloud. It is like a web server that can be resized according to number of configuration. Resizable compute capacity in the cloud , which can be customize according to your need . It is used to host your a application . B. Lambda - AWS Lambda is a compute service that makes it easy for you to build applications that respond quickly to new information . This is an aws service that executes background tasks.It is not used to host an application. example : file compression in background . AWS Lambda is an event-driven, serverless computing plat...
In this blog, we will know how to deploy a Machine Learning model on a Flask App. In this blog, I am going to deploy a Simple Spam Classification Model to flask App. If you have read before about deployment of the ML model you have heard of Pickle . This is most famous library for model deployment. But the question is, Is it most suitable in every case. The answer is no. When we made a model with the sckit-learn classifiers, then Pickle faces some issues. These issues are also described in docs. But the Solution is the JOBLIB library. In this blog We will create a flask app and deploy the model in flask App with help of joblib. from here you can download pre-trained model used in this blog. Models are in output file on kaggle- https://www.kaggle.com/thedeathcure/sms-spam-filtering . Model files are present in both format - model.joblib(joblib) and model.pkl (pickle) Create app.py https://gist.github.com/maze-runnar/4b455b2b2bdb0ba45c744da55dce5160 import ...
Comments