## What does % do in Python?

Use 1:

The % (modulo) operator yields the remainder from the division of the first argument by the second. The numeric arguments are first converted to a common type. A zero right argument raises the ZeroDivisionError exception. The arguments may be floating point numbers, e.g., 3.14%0.7 equals 0.34 (since 3.14 equals 4*0.7 + 0.34.) The modulo operator always yields a result with the same sign as its second operand (or zero); the absolute value of the result is strictly smaller than the absolute value of the second operand

Example 1: 6%2 evaluates to 0 because there’s no remainder if 6 is divided by 2 ( 3 times ).

Example 27%2 evaluates to 1 because there’s a remainder of 1 when 7 is divided by 2 ( 3 times ).

Use 2:

The % is also used in string formatting operations like %= to substitute values into a string:

>>> x = 'abc_%(key)s_'>>> x %= {'key':'value'}>>> x 'abc_value_'

Use 3:

For example (for python 3)

print ('%s is %d years old' % ('Joe', 42))

Would output

Joe is 42 years old

## Difference between %s and %d in Python

%s is used as a placeholder for string values you want to inject into a formatted string.

%d is used as a placeholder for numeric or decimal values.

For example (for python 3)

print ('%s is %d years old' % ('Amal', 42))

Would output

Amal is 42 years old

## What does “%ds” mean in python?

The '%ds' is not a format specifier. It’s '%d' followed by 's':

>>> "%ds" % 88s

## How to convert binary string to normal string in Python3?

Decode it.

>>> b'a string'.decode('ascii')'a string'

To get bytes from string, encode it.

>>> 'a string'.encode('ascii')b'a string'

## Where is python installed on Mac

On High Sierra

which python

which python3.6

My machine shows:

/anaconda3/bin/python3.6

## Where is tensorflow installed in Mac

Installing with pip, installs the packages to the directory “site-packages”.

The following code shows the location of tensorflow as well as where pip installs the packages:

## ROUGE in NLP | Full Form of ROUGE in NLP

ROUGE, or Recall-Oriented Understudy for Gisting Evaluation, is a set of metrics and a software package used for evaluating automatic summarization and machine translation software in natural language processing. The metrics compare an automatically produced summary or translation against a reference or a set of references (human-produced) summary or translation.

## Metrics

The following five evaluation metrics are available.

• ROUGE-N: Overlap of N-grams between the system and reference summaries.
• ROUGE-1 refers to the overlap of 1-gram (each word) between the system and reference summaries.
• ROUGE-2 refers to the overlap of bigrams between the system and reference summaries.
• ROUGE-L: Longest Common Subsequence (LCS)[4] based statistics. Longest common subsequence problem takes into account sentence level structure similarity naturally and identifies longest co-occurring in sequence n-grams automatically.
• ROUGE-W: Weighted LCS-based statistics that favours consecutive LCSes.
• ROUGE-S: Skip-bigram[5] based co-occurrence statistics. Skip-bigram is any pair of words in their sentence order.
• ROUGE-SU: Skip-bigram plus Unigram-based co-occurrence statistics.

## What is word embedding in deep learning?

A plot of word embeddings in English and German. The semantic equivalence of words has been inferred by their context, so similar meanings are co-located. This is because the relative semantics of words are consistent, whatever the language. [Source: Luong et al]

The Big Idea of Word Embedding is to turn text into numbers.

Creating Word Embeddings is the basic step to working with textual data because computers and other devices don’t understand the text – they largely work with numbers when it comes to detection and recognition.

So a natural language modelling technique like Word Embedding is used to map words or phrases from a vocabulary to a corresponding vector of real numbers. As well as being amenable to processing by learning algorithms, this vector representation has two important and advantageous properties:

• Dimensionality Reduction — it is a more efficient representation
• Contextual Similarity — it is a more expressive representation

### Fundamental Idea:

The main idea here is that every word can be converted to a set of numbers – N-dimensional vector. Although every word gets assigned a unique vector/embedding, similar words end up having values closer to each other. For example, the vectors for the words ‘Woman’ and ‘Girl’ would have a higher similarity than the vectors for ‘Girl’ and ‘Cat’.

For these numerical representations to be really useful, the goal is to capture meanings, semantic relationships, similarities between words, and the context of different words as they are used naturally by humans.

The meaning of a word can be captured, to some extent, by its use with other words. For example, ‘food’ and ‘hungry’ are more likely to be used in the same context than the words ‘hungry’ and ‘software’.

The idea is that given any two words if these two words have a similar meaning, they are likely to have similar context words. And this is used as the basis of the training algorithms for word embeddings.

### Word Embeddings techniques:

There are many techniques to create Word Embeddings. Some of the popular ones are:

1. Binary Encoding.
2. TF Encoding.
3. TF-IDF Encoding.
4. Latent Semantic Analysis Encoding.
5. Word2Vec Encoding.

### Applications:

Healthcare:

Take, for example, one of the biggest challenges faced by health-tech today – how to integrate HIMS (Hospital Information Management System) and EHR (Electronic Health Records)? How to feed this integration into the CDS (Clinical Decision Support) of hospitals? And finally, how to automate the process of generating accurate results from CDS – both diagnostic and prescriptive? Or, another pressing problem faced by 21st-century healthcare management – how can feature selection of disease symptoms be used for epidemic surveillance (Bird flu or H1N1 for example)?

Taxonomy:

Taxonomies are pivotal to knowledge management and organization and serve as the foundation for superior representations of knowledge in various systems, such as formal ontologies. Since developing taxonomies by humans is cumbersome and expensive, automation of taxonomy induction to build taxonomies at scale requires recognizing words and word patterns in context.

Financial News:

An industry that is highly sensitive to news announcements and press releases, modern technology is being trained to delve into understanding the sentiment of financial news even as we speak, to detect and depict market bearings.

## How do I add hover over text for cells in Google Doc?

Use cell comments (e.g. right-click the cell to see the option insert comment).

## Top 10 Places to go Scuba Diving in India

1. The Andaman Islands and

2. Lakshadweep Islands are the best locations of scuba diving in the country in terms of visibility.

(Although seasonal, diving is year round).

3. Netrani Islands is generally termed as the best diving in mainland India. (Seasonal).

4. Pondicherry (Year-round) comes a close second in the mainland.

Other options involve

5. Dwarka,

6. Ratnagiri,

7. Malvan,

8. Goa,

9. Kozhikode,

10. Cochin,

## What are the best places to go scuba diving in India?

1. The Andaman Islands and

2. Lakshadweep Islands are the best locations of scuba diving in the country in terms of visibility.

(Although seasonal, diving is year round).

3. Netrani Islands is generally termed as the best diving in mainland India. (Seasonal).

4. Pondicherry (Year-round) comes a close second in the mainland.

Other options involve

5. Dwarka,

6. Ratnagiri,

7. Malvan,

8. Goa,

9. Kozhikode,

10. Cochin,

11. Rameshwaram,

12. Mahabalipuram,

13. Chennai,

14. Vishakapatnam and

15. Shillong.

Metro cities such as BangaloreMumbaiDelhiPune also have pool session options available.

Tags:

scuba diving courses in india
scuba diving in india price
havelock island scuba diving india
netrani island scuba diving india
scuba diving in india andaman
pondicherry scuba diving india
bangaram atoll scuba diving india
grand island goa
best places for scuba diving
scuba diving courses in india
scuba diving course in andaman
pondicherry diving
scuba diving course fees
scuba diving course in mumbai
nightlife pondicherry the french town
scuba diving course in goa
commercial diving course in india
havelock island scuba diving india
netrani island scuba diving india
bangaram atoll scuba diving india
pondicherry scuba diving india
goa scuba diving india
french street in pondicherry
french street names in pondicherry
havelock island diving india
coral shark reef pondicherry
minicoy diving

## Programmers way to express love | Romantic Programming Code

from world import me,you

from feelings import *

from body import heart

from mind import every_thoughts,I,your

forever = True

while forever:

 endlessly = True

 your_feelings = ["dejected", "depressed","sad","gloomy","downcast"]

 for you in your_feelings:

 print "I am always there"

 while endlessly:

 I.take_care_of(you)

 if you.love() is not me:

 break

 for emotion in me.heart:

 try:

 your.love = me

 except:

 your.bestfriend = me

 if I.annoy(you):

 love(me)

 elif you.angry(me):

 I.cool(you)

 else:

 love(me,how ='unconditionally,deeply')

 for i in every_thoughts:

 print "You"

## Things to Know Before going to BTM Lake (Madiwala Lake)

Bangalore was once called the ‘City of Lakes’. With more than 260 lakes, ponds, and marshy wetlands.

Madiwala Lake is among the larger, yet better-maintained lakes in Bangalore. Also known as the BTM Layout lake, this lake is spread over a large area and is just off the Silk Board junction on the Outer Ring Road.

The lake has a park at its southern end, which charges Rs. 10 for entry and Rs. 100 each for boating and camera. Alternatively, one can see and photograph the lake for free from its northern side, though the approach from there is rather narrow and not very clean. That said, if one is looking for a peaceful break from the chaos around or looking for a nice walk or jog, this is a good place to visit.

This water is about 300 years old. Built by the Cholas, one of the longest ruling dynasties in southern India. It is believed that the lake was built overnight. The term Madiwala means man washing machine. In the past, the lake was mainly used by the washing machine men who lived near it. That’s why it was called it. Until then, his water was clean enough to be used for drinking.

• 1. The lake is well maintained, clean and neat.
2. Entry fee is Rs 10/- for adults, Rs 5/- for kids. Camera ticket is extra at Rs 100/-.
3. 2 types are boats, one with self-peddling which can accommodate 4 people and another a big boat which can accommodate around 20-30 people. Boating is at Rs 50/- per person.

4. Pay & use toilets are present.
5. No plastic items are allowed inside.
6. Many varieties of birds found here. Painted storks, Indian cormorants, pond herons are found aplenty.

7. Walking stretch is very long. Evening time gets crowded. Boating can be difficult in the evening with many people standing in the queue.

• Ideal For: Nature lovers
• Timings: 5.00 am to 9.30 pm every day of the week
• Boating Time: 10.00 am to 6.30 pm
• Entry Fee: 5/- per child and Rs. 10/- per adult. Extra charge per camera
• Approximate Visit Duration: 1 to 2 hours
• Activities: Nature walk, boat ride, bird watching, park visit
• Best Time to Visit: Throughout the year
• Parking: Parking space available for cars and bikes

## What is AI ? | Artificial Intelligence Definition

Artificial intelligence (AI) is the ability of a computer program or machine to think and learn. It is also a field of research that attempts to make computers “smart”. In 1955, John McCarthy proposed the name “artificial intelligence.”

## Best localities to Live in Bangalore

1. Banashankari
3. Basavanagudi
4. Bellandur
5. Bommanahalli
6. BTM
7. Electronic City
9. HSR
10. Jayanagar
11. JP Nagar
13. Kumaraswamy Layout
15. Uttarahalli
1. Brookefield
2. CV Raman Nagar
3. Domlur
4. Indiranagar
6. Jeevan Bhima Nagar
8. KR Puram
9. Marathahalli
12. Thippasandra
14. Whitefield
2. Frazer Town
3. HBR Layout
4. Hebbal
5. Hennur
6. International Airport
7. Jakkur
8. Jalahalli
9. Kalyan Nagar
10. Kammanahalli
11. Nagawara
13. Rammurthy Nagar
14. Richards Town
15. RT Nagar
16. Sahakara Nagar
17. Sanjay Nagar
18. Yelahanka
1. Basaveshwara Nagar
2. City Market
3. Kengeri
5. Majestic
6. Malleshwaram
8. Nagarbhavi
9. Peenya
11. Rajajinagar
12. Rajarajeshwari Nagar
16. Vijay Nagar
17. Yeshwantpur
2. Church Street
3. Commercial Street
6. Langford Town
11. Richmond Town
12. Shanti Nagar
13. Shivajinagar
15. Ulsoor
16. Vasanth Nagar
17. Wilson Garden
1. Ejipura
2. Koramangala 1st Block
3. Koramangala 2nd Block
4. Koramangala 3rd Block
5. Koramangala 4th Block
6. Koramangala 5th Block
7. Koramangala 6th Block
8. Koramangala 7th Block
9. Koramangala 8th Block

## What are some good sports to let out anger?

Anger is bubbling of oneself in inside. You need to pour it out in any form. If you don’t , it will only harm you. Better to let it out.

Sports are one of the best ways to let out your anger blast away and subside.

There are several sports which can help with that

-Boxing

-Wrestling

-tennis

-Football

-Baseball

-Weightlifting

-running

-punching bag

Depends on which one you find most interesting.

## 10 Best Pubs in Bangalore

Bangalore is popularly known as the Pub City. It is indeed “Pub Capital of India”. There are more than 800 pubs, bars and clubs in Bangalore and every pub has their own USP.

Main areas where you will find the best pubs are

• Indiranagar
• Koramangala
• MG Road and nearby places
• Whitefield and Nearby Places

• ### 01ABC

ABC or Arbor Brewing Company is not new to the world of brewing beer. The place offers creative American pub food and incredible variants in handcrafted beer. ABC at Bangalore sticks to its American ways and you step into a western tavern styled premise with all-wooden interiors. This is definitely the best place to hang out if you have been missing the Oktoberfest!

The warm and cozy ambiance of the place attracts hundreds of guests on weekends but if you want a cozy space for your group, make sure that you come early. Weekdays are your best bet to fall in love with the ambiance sans the crowd. It is one of the best pubs in Bangalore with a dance floor.

ABC offers a full bar, DJ, Elevator, valet parking, outdoor seating and a smoking area. It is also accessible on wheelchair.

Cuisines

American, Italian and Continental food is available here. However, do try the Arbor-ger, Baked Mac and Cheese and their bacon salad. With a beer in hand, it will be a great experience.

Cost for Two

The average cost for a dinner for two will come to about INR 2,000, including the alcohol.

Cost of a pint of Beer

You will pay about INR 200 for a pint of beer.

Opening and Closing Hour

ABC is open from 12 PM (noon) till 1 AM in the morning.

Location

• ### 02Skyye, City Bar

The highest and most happening bar in Bangalore, Skyye is a rooftop lounge located inside the compounds of the UB City. The bar is designed for creativity and ingenuity, with lit up floors, high seating and a dance floor. It’s a colorful setting with rainbow LEDs emanating from all corners.

Apart from dance, music, drinks and food, Skyye also hosts book readings, stand up performances, Karaoke nights and exhibitions. There’s always something going on that will keep visitors engaged. If you are in Bangalore for a night and are planning to take back the best experience, Skyye is the place. This is one of the most popular pubs for a romantic experience for couples in Bangalore.

Cuisines

The place is not as much for food as for the music or the drinks. However, the most popular servings include Peri Peri Chicken, Potato Wedges and Chicken Satay.

Cost for Two

The average cost for a dinner for two will come to about INR 2,500, including the alcohol.

Cost of a pint of Beer

You will pay about INR 210 for a pint of beer.

Opening and Closing Hours

The Skyye City Bar is open from 5.30 PM in the evening and until 11 PM in the night.

Location

Uber Level, 16th Floor, UB City, Vittal Mallya Road, Lavelle Road, Bangalore

• ### 03Toit

TOIT is the first suggestion you would get when you ask about the best beer in the city. There are loads of varieties in draft beer and some unique favors including banana draft, rice draft and more. To complement the bee is their amazing food menu, each of which has a distinct favor.

The ambience is cozy and depending on the crowd, you can get a high chair. TOIT brews its own beer and this makes the place a favorite among aficionados. You will get a feel of a European pub and a very helpful staff. It is one of the most popular pubs in Bangalore without an entry fee.

Cuisine

TOIT serves Italian, American and Pizza. Don’t miss their beefy loaded potatoes, mixed meat pizza and chicken wings. The Tin-Tin beer has been a long time favorite among visitors.

Cost for Two

The average cost for a dinner for two will come to about INR 1,500, including the alcohol.

Cost of a pint of Beer

You will pay about INR 225 for a pint of beer.

Opening and Closing Hours

The Skyye City Bar is open from 12 noon and until 12.30 AM in the night.

Location

298, Namma Metro Pillar 62, 100 Feet Road, Indiranagar, Bangalore

Go camping at some of the best campsites in Bangalore.

• ### 04High

HIGH is famed for being the highest lounge in South India and sprawls across 11,000 sq. ft and at 420 feet above the ground. As you dine and drink, you can immerse yourself in the unbridled sight of Bangalore. The restaurant itself has been designed with warm wooden flooring and soft ambient lighting.

Good music and delicious food will indeed give you a different kind of high! The rooftop seating is especially popular among couples for a romantic candle light dinner in Bangalore who are looking to escape the crowd and this experience is added to by the amazingly helpful and friendly staff. High has a well stocked bar that will offer you a wholesome experience of fine dining.

Cuisine

HIGH serves amazing Japanese, Korean and Thai dishes.

Cost for Two

The average cost for a dinner for two will come to about INR 2,600, including the alcohol.

Cost of a pint of Beer

You will pay about INR 250 for a pint of beer.

Opening and Closing Hours

HIGH Lounge is open between 12.30 PM and 3.30 PM and again between 5.30 PM and 1 AM in the morning.

Location

• ### 05District 6

District 6 is an upscale micro-brewery that offers both fine dining and classic brews. If you have been searching for a low profile, quaint but ambient place to have a glass of beer with your dinner, this is it.

It a place that is meant for conversations, be it with your partner or with a small group of friends. The restaurant also offers great music in a laid back ambience. If you are a music lover of any sort, be here.

Cuisine

District 6 kitchen serves North Indian, Continental, American and Chinese dishes. Do try out their unique cocktails.

Cost for Two

The average cost for a dinner for two will come to about INR 1,800, including the alcohol.

Cost of a pint of Beer

You will pay about INR 229 for a pint of beer.

Opening and Closing Hours

District 6 is open from 12 noon to 11.30 PM. On Wednesday, Thursday, Friday and Saturday, the pub is open till 1 AM in the morning. Happy Hours are from 3 PM to 7 PM, Monday to Thursday.

Location

G 3, 4, 5, Ground Floor, Sheraton Hotel, Brigade Gateway Campus, Malleshwaram, Bangalore

• ### 06Loft 38

Another happening pub at Indiranagar, Loft 38 is a premium facility that is spread across three levels. The best thing about the place is the music and live performances by artists from across the world.

The DJ too is high end and adds to the whole experience of food and beer amidst the warm, rusty and woody ambience. This place is for spirited people who love noise and like to be in the crowd! It is one of the best pubs in Bangalore with a dance floor.

Cuisine

Loft 38 offers Italian, continental, Asian, American and Multi-Cuisine food experiences.

Cost for Two

The average cost for a dinner for two will come to about INR 2,100, including the alcohol.

Cost of a pint of Beer

You will pay about INR 250 for a pint of beer.

Opening and Closing Hours

Loft 38 is open from 12.30 PM till 11.30 PM except on Fridays and Saturdays when you can party till 1 AM. Happy Hours are from 4 PM to 8 PM, everyday.

Location

763, Near Sony World, 100 Feet Road, Indiranagar, Bangalore

Fill your tummy at these best places for breakfast in Bangalore, these places are must to experience best food in Bangalore.

• ### 07Hoppipola

Hoppipola is another laid back option at Indiranagar and includes an all-day bar & bonhomie. The place is themed to white décor and everything from the wooden furnishing to the tiles is white. The colorful seating and window glasses offer good contrast to the setting and this will be a perfect place if you are looking to grab a glass of beer with some food at any time of the day.

Hoppipolla is an especially popular pub in Bangalore for couples and friends looking for Instagram worthy photo ops along with lunch! There is both an outdoor and indoor section that you can choose to seat. Hoppipolla also offers valet parking and home delivery.

Cuisine

The cuisine of Hoppipola is limited to Mexican and Continental dishes, but there’s a long list of items that you can seek. There are some Mediterranean and European dishes too included in their menu.

Cost for Two

The average cost for a dinner for two will come to about INR 1,300, including the alcohol.

Cost of a pint of Beer

You will pay about INR 200 for a pint of beer.

Opening and Closing Hours

Hoppipolla is open from 12 noon till midnight except on Fridays and Saturdays, when you can dine till 12.45 AM. On Sundays, the kitchen closes at 11.45 PM.

Location

4032, Terrace Mainland China Building, HAL 2nd Stage, Off 100 Feet Road, Indiranagar, Bangalore

• ### 08Fenny’s

Located on an open rooftop terrace, Fenny’s is the place to be at if you are in Koramangala. The bar is also accompanied by a DJ that dishes out some great music. Take a sip of their signature cocktail and head to the dance floor with your partner or friends.

Fenny’s is a very happening place if you have been looking for fun. The best part about the place is that the menu is quite pocket-friendly and also features a section for sea-food. The light hearted ambiance lifts up your mood in no time! It can be a perfect destination for weekend in Bangalore

Cuisine

Fenny’s serves Continental, Mediterranean, Italian and Seafood dishes. A table booking is recommended if you are planning on a weekend.

Cost for Two

The average cost for a dinner for two will come to about INR 1,800, including the alcohol.

Cost of a pint of Beer

You will pay about INR 200 for a pint of beer.

Opening and Closing Hours

Fenny’s is open from 11.30 AM till 1 AM in the night.

Location

115, 3rd Floor, Opposite Raheja Arcade, Koramangala 7th Block, Bangalore

• ### 09Church Street Social

The Church Street Social has been a fairly new addition to the Bangalore nightlife but it has already made quite of an impact. Social has always been marketed as a place than merges work with drinks.

Church Street Social has conveniently been a place for executives to unwind after work. Social is open all day and you can hope to both work and play in it’s fun ambiance. The urban hangout has been particularly designed to keep you connected. It has always been a preferred gathering for artists and a popular day break in Bangalore.

Cuisine

Church Street Social serves an extensive range of Continental and American dishes along with a wide ray of drinks and cocktails.

Cost for Two

The average cost for a dinner for two will come to about INR 1,500, including the alcohol.

Cost of a pint of Beer

You will pay about INR 150 for a pint of beer.

Opening and Closing Hours

Church Street Social is open from 9.00 AM in the morning till 1 AM in the night.

Location

46/1, Cobalt Building, Church Street, Bangalore

Enjoy the best nightlife these new year events in Bangalore.
• ### 10The Biere Club

Centrally located in Bangalore, Biere Club is another micro brewery and you can expect a range of authentic and locally brewed drinks. Its wheat beer has been a particular favorite for more than a decade now and has somewhat acquired a legendary status.

A high degree of sophistication goes into beer brewing and you can also expect a wide serving of food platters too. The Biere Club would also be a perfect stop if you are with your family. As understood, the place gets a very decent laid back crowd that loves its food and drinks. The rustic ambiance is complimented by soft music in the background and a very friendly staff.

Cuisine

The Biere Club offers continental and finger foods.

Cost for Two

The average cost for a dinner for two will come to about INR 1,700, including the alcohol.

Cost of a pint of Beer

You will pay about INR 160 for a pint of beer.

Opening and Closing Hours

The Biere Club is open from 11.30 AM in the morning till 11.30 PM in the night. On Fridays and Saturdays, the place is open till midnight.

Location