Installing Flask in Windows8 Flask is a lightweight web application framework written in Python. Flask depends on two external libraries, Werkzeug and Jinja2. Werkzeug is a toolkit for Web Server Gateway Interface (WSGI) Jinja2 renders templates Flask is called as microframework because it keeps the core simple. It has no database abstraction layer, supports extensions (object-relational mappers, form validation, open authentication technologies). It have ...

Basic Functionality of Series or DataFrame in Pandas Throughout this post I will take you over the fundamental mechanics of interacting with the data contained in a Series or DataFrame in pandas(python). Reindexing Reindexing is a critical method on pandas objects. 'Reindexing' means to create a new object with the data conformed to a new index. Here is my object that I will be using for this post ...

Pandas for Data Manipulation and Analysis Pandas is a software library written for the Python programming language for data manipulation and analysis. In many organizations, it is common to research, prototype, and test new ideas usinga more domain-specific computing language like MATLAB or R then later port those ideas to be part of a larger production system written in, say, Java, C#, or C++. Whatpeople ...

Python For Beginners Python is an interpreted dynamically typed Language with very straightforward syntax. Python comes in two basic versions one in 2.x and 3.x and Python 2 and 3 are quite different. This post is bais for Python 2.x In Python 2, the "print" is keyword. In Python 3 "print" is a function, and must be invoked with parentheses. There are no ...

Python with CSV CSV (Comma Separated Values) format is the most common format in computer world (export and import). In python 'csv module' implements classes to read and write tabular data in CSV format without knowing the precise details of the CSV format used by Excel. Here it is reading csv file and filtering data in it. Create new CSV file and moved ...

Predictive modeling is the process by which a model is created or chosen to try to best predict the probability of an outcome. Most often it wants to predict is in the future or unknown event. The model is chosen on the basis of detection theory. Models can use one or more classifiers. Models There are three predictive models Parametric ...

Gaussian function Gaussian function is a function of the below form a, b, c and d are arbitrary real constants. The graph of a Gaussian is a characteristic symmetric "bell curve" shape that quickly falls off. The parameters a is the height of the curve's peak b is the position of the center of the peak c (the standard deviation, sometimes called ...

Installing external package for canopy / (python) 1. Go to Package Manager in Canopy, then go to Canopy Command prompt 2. In CMD enter pip install --upgrade https://pypi.python.org/packages/source/p/pykalman/pykalman-0.9.5.tar.gz (Here you can find some python packages) Editor Now Write code in edit with kalman 1 from pykalman import KalmanFilter 2 import numpy as np 3 print 'start'; 4 5 kf = KalmanFilter(transition_matrices = [[1, 1], [0, 1]], observation_matrices ...

Regular Expressions with Python Regular expressions are a powerful language for matching text patterns. This post will explain regular expressions by Python. The Python "re" module provides regular expression support. match = re.search(pattern, string) If the search is successful, search() returns a match object or None otherwise. 1 import re2 3 string1 = 'Regular expressions are a powerful language for matching text patterns'4 match ...

Python Code for File reading To express the statements we can used the print statement or the write() method of file. Now we will read from file and write that content to file. Reading File 1 fd = open("D:/Research/python/test.log", "r+") 2 print fd.read(4)3 print fdOut put Write to file1 fd = open("D:/Research/python/test.txt", "w+") 2 fd.write("This is a test file.\n")3 fd.close()fd.readline() reads a single line from ...

Estimation Theory Estimation theory is a branch of statistics that deals with estimating the values of parameters based on measured/empirical data that has a random component. An estimator attempts to approximate the unknown parameters using the measurements. we can see 'estimation theory' in used in real world in radar for estimating the transit time and predicating tool such as voting in election. ...

AngularJS and solr var app = angular.module("app", []); app.controller("AppCtrl", function($http,$scope) { var app = this; app.lastName = 'aaaa'; $http( {method: 'JSONP', url: 'http://localhost:8983/solr/select?q=httpmethod:GET&rows=10&wt=json', params:{'json.wrf': 'JSON_CALLBACK'} }) .success(function(data) { var docs = data.response.docs; console.log('search success!'); console.log(data.response.docs); app.lastName = data.response.docs[0].hostip; }).error(function() { console.log('Search failed!'); }); }) ...

Apache Solr and Search Introduction It is open source enterprise search platform from the Apache Lucene. Its major features include text search hit highlighting faceted search near real-time indexing dynamic clustering database integration rich document (e.g., Word, PDF) handling geospatial search Solr runs as a standalone full-text search server within a servlet container. Solr uses the Lucene Java search library at its core for ...

Fundamental building blocks of event processing There are seven fundamental building blocks of event processing. Some building blocks contain references to others. The event producer represents an application entity that emits events into the event processing networks (EPN) The event consumer is an application entity that receives events, Simply it consumes an event The event processing agent building block represents a piece of intermediary event processing ...

Switching Activities in Android (tutorial 03) New activity when the user clicks the button. Here I will improve last sample code 1. Create a new activity 2. You can see new UI for 2nd activity and then we change string value as below 3. In MainActivity.java we can added below line to switch activity. (there are few ways to achieve it, this only one way) 1 ...

Android Applications Development in 15min  (tutorial 02) Last Post (tutorial 01) was on Android Software Stack and Terminology[1]. This post will for beginner on Android applications, This post will teach you fast mobile application development from Android Developer Tools (ADT) are based on the Eclipse IDE. 1. Start ADT and then go file—> new –> Android Applications Project 2. Follow the wizard with give project name (other ...

Android Software Stack and Terminology (tutorial 01) Android system software full stack Android system software stack is typically divided into the four areas as following graphic Terminology Android Software Development Kit (Android SDK) contains the necessary tools to create, compile and package Android applications Android debug bridge (adb), which is a tool that allows you to connect to a virtual or real Android device Google provides two ...

Anomaly Detection : A Survey This post is summary of the “Anomaly Detection : A Survey”. Anomaly detection refers to the problem of finding patterns in data that do not conform to expected behavior. These non-conforming patterns are often referred to as anomalies, outliers, discordant observations, exceptions, aberrations, surprises, peculiarities or contaminants in different application domains. Anomalies are patterns in data that do not conform ...

Using Hardware Devices to Run Android App from IDE in Windows 8 Post describes how to set up your development environment and Android-powered device for testing and debugging on the device. I am using windows 8 for this post and device is GT-S7582 1. Enable USB debugging on your device.On Android 3.2 or older, you can find the option under Settings > Applications > DevelopmentOn Android 4.0 and newer, it's in Settings ...

Previous Page