Here is a simple java GZIP example program showing how can we compress a string into GZIP format and then decompress the GZIP formatted string to original string.
Saturday, 29 February 2020
File Compression and Decompression using GZIPCompression in java, String Compression and Decompression using GZIPCompression in java
Labels:
compress and decompress string in java,
compress and decompress string in javascript,
compression and decompression of string data in java,
compression and decompression of string in java,
enable gzip compression java,
gzip compression in java,
gzip compression in java example,
gzip compression java,
gzip compression java code,
gzip compression java example,
gzip compression string java,
gzip compression using java,
how to compress and decompress a string in java,
how to compress and decompress string in java,
java gzip compression ratio,
java gzip compression slow,
java gzip maximum compression,
java gzip unzip compression,
java spring gzip compression,
string compression and decompression in java
Thursday, 20 February 2020
Traffic Flow Dataset
This dataset contains traffic flow details. It has 16 attributes.
(1) Current_Location
(2) Destination
(3) Route
(4) Distance
(5) Average_Speed
(6) Time_to_Reach_Destination
(7) Date_&_Time
(8) Two_Wheeler
(9) Truck_Lorry
(10) Car
(11) Bus
(12) Non_Motorised_Vehicles
(13) Other_Motorised_Vehicles
(14) Three_Wheeler
(15) SUVOrStation_Wagon
(16) Jeep
Labels:
belgium traffic dataset,
botnet traffic dataset,
dataset traffic flow,
dataset traffic light,
dataset traffic sign,
road traffic accident dataset,
road traffic dataset india,
traffic analysis dataset,
traffic cctv dataset,
traffic classification dataset,
traffic cone dataset,
traffic count dataset,
traffic dataset download,
traffic dataset free download,
traffic dataset images,
traffic dataset india,
traffic dataset kaggle,
traffic dataset video,
traffic sign board dataset,
traffic violation dataset analysis
Tuesday, 18 February 2020
AES Encryption and Decryption Java Code
AES algorithm is a well-known cryptography algorithm. It is a symmetric key cryptography algorithm. Symmetric means same key used for both encryption and decryption. This algorithm encrypts a text to ciphertext and decrypt ciphertext to original text based on AES key.
Labels:
aes 256 encryption and decryption java,
aes algorithm for encryption and decryption in java,
aes encryption and decryption in java,
aes encryption and decryption in java example,
aes encryption and decryption in javascript example,
aes encryption and decryption java code,
aes encryption and decryption java example,
aes encryption and decryption javascript,
aes encryption and decryption of file in java,
aes encryption and decryption using java,
aes encryption in angular and decryption in java,
aes gcm encryption java,
cryptojs aes encryption and java aes decryption,
encryption and decryption using aes algorithm in java,
encryption and decryption using aes algorithm in java example,
file encryption and decryption in java using aes,
java aes gcm encryption example,
java code for aes encryption and decryption,
java program for aes encryption and decryption,
java source code for aes encryption and decryption
Thursday, 13 February 2020
Create a bar chart in JSP using JFreeChart
This Example Code demonstrates you how to generate a bar chart in JSP with JFreeChart. Source Code given below generates a bar chart of fruit prices of two days in a fruit shop.
Two jar file is necessary
==================
1) jcommon-1.0.16.jar
2) jfreechart.jar
jcommon-1.0.16.jar Link -->
https://repo1.maven.org/maven2/jfree/jcommon/1.0.16/jcommon-1.0.16.jar
jfreechart.jar Link -->
http://www.java2s.com/Code/JarDownload/jfreechart/jfreechart.jar.zip
(Extract jfreechart.jar.zip file and and use jfreechart.jar)
Two jar file is necessary
==================
1) jcommon-1.0.16.jar
2) jfreechart.jar
jcommon-1.0.16.jar Link -->
https://repo1.maven.org/maven2/jfree/jcommon/1.0.16/jcommon-1.0.16.jar
jfreechart.jar Link -->
http://www.java2s.com/Code/JarDownload/jfreechart/jfreechart.jar.zip
(Extract jfreechart.jar.zip file and and use jfreechart.jar)
Output:
Labels:
bar chart in jsp example,
bar chart in jsp page example,
bar chart in jsp using jfreechart example,
bar chart using jsp,
create bar chart,
create bar chart in jsp,
free charts for jsp,
how to create bar chart in jsp,
how to create bar chart in jsp using database values,
how to create bar chart in jsp using mysql database values,
how to create chart in jsp,
how to create dynamic bar chart in jsp,
how to create line chart in jsp,
how to create pie chart in java,
how to create pie chart in jsp,
how to display bar chart in jsp,
how to generate bar chart in jsp,
jfreechart bar chart example in jsp,
jquery charts free
Wednesday, 30 May 2018
SVM Classification using WEKA Java Code
In machine learning, support vector machines (SVMs, also support vector networks) are supervised learning models with associated learning algorithms that analyze data used for classification and regression analysis. A Support Vector Machine (SVM) is a discriminative classifier formally defined by a separating hyperplane. In other words, given labeled training data (supervised learning), the algorithm outputs an optimal hyperplane which categorizes new examples. The vectors (cases) that define the hyperplane are the support vectors. SVM uses a technique called the kernel trick to transform your data and then based on these transformations it finds an optimal boundary between the possible outputs.
Requirements:
==========
2 Jar Files
--> weka-3.7.3.jar
2 Datasets
How to Implement:
==============
ClevelandHeartDiseaseTrainingDataset.arff contains lot of patients Health Records. It has 5 attributes and 1 class attribute.
1) sex: patient sex (1 = male, 0 = female),
2) cp: chest pain type (1 = typical angina, 2 = atypical angina, 3 = non-anginal pain, 4 = asymptomatic),
3) slope: the slope of the peak exercise ST segment (1 = upsloping, 2 = flat, 3 = downsloping)
4) ca: number of major vessels (0-3) colored by flourosopy
5) thal: (3 = normal, 6 = fixed defect, 7 = reversable defect)
6) class: (0 = no heart disease, 1 = presence of heart disease)
This Classification Algorithm classify this training dataset. After Classification, it generate some classification rules. Followed by, this algorithm load ClevelandHeartDiseaseTestingDataset.arff. This testing dataset contains 5 attributes with one class attribute. This class attribute contains (?) question mark. Because we predict each testing record is possible to presence of heart disease or not. Then this classification algorithm predicts each records class attribute value based on classification rules (It is generated after Training Process).
How to Run this Code in Command Prompt:
===================================
>set classpath=%classpath%;weka-3.7.1-beta.jar;
>set classpath=%classpath%;weka-3.7.3.jar;
>javac SVMClassification.java
>java SVMClassification
Output: SVMOutput.txt
Labels:
classification,
svm,
svm classification,
svm classification weka,
svm java code,
svm java tutorial,
svm weka,
svm weka java,
svm weka java code,
svm weka java example,
svm weka tutorial,
weka prediction java code,
weka smo linear kernel,
weka svm,
weka svm classifier java example,
weka svm example,
weka svm parameters
SVM Classification Output
@relation ClevelandHeartDiseaseTestingDataset
@attribute sex {0,1}
@attribute cp {1,2,3,4}
@attribute slope {1,2,3}
@attribute ca {0,1,2,3}
@attribute thal {3,6,7}
@attribute class {0,1}
@data
1,1,2,0,3,1
0,1,1,0,3,1
1,2,2,0,3,1
1,3,1,2,7,0
Tuesday, 29 May 2018
Naive Bayes Classification using WEKA Java Code
Naive Bayes is a simple technique for constructing classifiers: models that assign class labels to problem instances, represented as vectors of feature values, where the class labels are drawn from some finite set. It is not a single algorithm for training such classifiers, but a family of algorithms based on a common principle: all naive Bayes classifiers assume that the value of a particular feature is independent of the value of any other feature, given the class variable. For example, a fruit may be considered to be an apple if it is red, round, and about 10 cm in diameter. A naive Bayes classifier considers each of these features to contribute independently to the probability that this fruit is an apple, regardless of any possible correlations between the color, roundness, and diameter features.
Requirements:
==========
2 Jar Files
--> weka-3.7.3.jar
2 Datasets
How to Implement:
==============
ClevelandHeartDiseaseTrainingDataset.arff contains lot of patients Health Records. It has 5 attributes and 1 class attribute.
1) sex: patient sex (1 = male, 0 = female),
2) cp: chest pain type (1 = typical angina, 2 = atypical angina, 3 = non-anginal pain, 4 = asymptomatic),
3) slope: the slope of the peak exercise ST segment (1 = upsloping, 2 = flat, 3 = downsloping)
4) ca: number of major vessels (0-3) colored by flourosopy
5) thal: (3 = normal, 6 = fixed defect, 7 = reversable defect)
6) class: (0 = no heart disease, 1 = presence of heart disease)
This Classification Algorithm classify this training dataset. After Classification, it generate some classification rules. Followed by, this algorithm load ClevelandHeartDiseaseTestingDataset.arff. This testing dataset contains 5 attributes with one class attribute. This class attribute contains (?) question mark. Because we predict each testing record is possible to presence of heart disease or not. Then this classification algorithm predicts each records class attribute value based on classification rules (It is generated after Training Process).
How to Run this Code in Command Prompt:
===================================
>set classpath=%classpath%;weka-3.7.1-beta.jar;
>set classpath=%classpath%;weka-3.7.3.jar;
>javac NaiveBayesClassification.java
>java NaiveBayesClassification
Output: NaiveBayesOutput.txt
Labels:
classification,
java code for naive bayes classifier in weka,
naive bayes,
naive bayes classification,
naive bayes classification weka,
naive bayes java code,
naive bayes text classification,
naive bayes weka,
naive bayes weka java,
naive bayes weka java code,
naive bayes weka tutorial,
neural network,
weka bayesian network tutorial,
weka learning rate,
weka naive bayes,
weka naive bayes classifier output,
weka naive bayes example,
weka naive bayes example java,
weka naive bayes source code,
what is bayes classifier
Subscribe to:
Posts (Atom)
