Email Classification into Relevant Category Using Neural Networks

Posted Leave a commentPosted in Blog, Python, R, Research

Email Classification into relevant labels using Neural Networks This research work has been carried out jointly by Deepak Kumar Gupta & Shruti Goyal November 11, 2017 Copyright Notice: Any redistribution or reproduction of part or all of the contents in any form is prohibited other than the following: you may print or download to a […]

TabPy Tutorial: Integration of Python in Tableau

Posted Leave a commentPosted in Blog, Python, Tableau, Uncategorized

This tutorial will give a walk through the installation and connecting Tableau with TabPy. After this tutorial, one will be able to execute a simple python function from Tableau to perform some analytics calculation such as correlations etc 1. Installation of Python and TabPy Windows Users: https://github.com/tableau/TabPy Download this official TabPy Integration from above link. […]

Palindrome series – Python

Posted Leave a commentPosted in Python, Uncategorized

[sourcecode language=”python” wraplines=”false” collapse=”false”] # -*- coding: utf-8 -*- """ Created on Fri Sep 16 00:07:26 2016 @author: Deepak """ #This program will confirm if the series is palindrome or not def first(s): return s[0] def last(s): return s[-1] def middle(s): return s[1:-1] def palindrome(s): if(len(s) <= 1 ): return True if first(s) != last(s): […]

n-gon function using Turtle – Python

Posted Leave a commentPosted in Python, Uncategorized

[sourcecode language=”python” wraplines=”false” collapse=”false”] -*- coding: utf-8 -*- """ Created on Fri Sep 16 18:00:00 2016 @author: Shruti """ #Program to take arguments to draw ngon import turtle t = turtle.Pen() def ngon(x): side_length = 30 myangle = 360 / x for i in range(x): t.forward(side_length) t.right(myangle) ngon(5) ############### def ngon2(x,s): angle=360/x for i in […]

23Gon using Turtle- Python

Posted Leave a commentPosted in Python, Uncategorized

[sourcecode language=”python” wraplines=”false” collapse=”false”] # -*- coding: utf-8 -*- """ Created on Fri Sep 16 00:28:29 2016 @author: Deepak """ #Program will draw 23-gon using turtle import turtle t = turtle.Pen() num_sides= 23 side_length = 30 myangle = 360 / num_sides for i in range(num_sides): t.forward(side_length) t.right(myangle) [/sourcecode]

Hailstones – Python

Posted Leave a commentPosted in Python, Uncategorized

[sourcecode language=”python” wraplines=”false” collapse=”false”] # -*- coding: utf-8 -*- """ Created on Thu Sep 15 23:41:45 2016 @author: Shruti """ #Iteration with while: using while, write a function which takes one argument, #an integer n, and calculates the Hailstones sequence starting at n. #If you don’t know the Hailstones sequence: #if hihi is even, then […]

Fibonacci Series – Python

Posted Leave a commentPosted in Python, Uncategorized

[sourcecode language=”python” wraplines=”false” collapse=”false”] # -*- coding: utf-8 -*- """ Created on Thu Sep 15 23:54:44 2016 @author: Shruti """ #This program will generate fibonacci series upto n numbers #fibonacci series is 1,1,2,3,5,8,13,… def fibonacci(n): if(n==0): return 0 elif(n==1): return 1 else: return fibonacci(n-1) + fibonacci(n-2) print (fibonacci(3)) [/sourcecode]