Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: How to find column index and its corresponding column name
Post: How to find column index and its corresponding col...
Hi,
I have below data:
import pandas as pd
import numpy as np
from scipy import stats
dataFileName='RFInput.xlsx'
sheetName='Rawdata'
sheetNamePara='paraList'
dataRaw=pd.read_excel(dataFileName, she... |
|
Raj |
Data Science |
2 |
3,425 |
May-09-2018, 04:02 PM |
|
|
Thread: How to read specified columns
Post: How to read specified columns
Hi,
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from scipy import stats
dataFileName='RFInput.xlsx'
sheetName='Rawdata'
sheetNamePara='paraList'
dataRaw=pd.read_excel(data... |
|
Raj |
Data Science |
0 |
1,703 |
May-08-2018, 11:59 AM |
|
|
Thread: How to perform my code multipel times
Post: How to perform my code multipel times
Hi,
I have below code to do SVR and Random forest method to predict, my code working well, but I want to do something which I could not be able to do,
I want to do following:
1. I want to run the c... |
|
Raj |
Data Science |
1 |
2,249 |
May-03-2018, 11:28 AM |
|
|
Thread: How to update trainSet on each iteration
Post: RE: How to update trainSet on each iteration
Yes, I am reading the data from xlxl sheet, but the sheet contains total data set,
1. Read data from the main input file
2. split the dataset into trainSet & testSet (I do not want to split rand... |
|
Raj |
Data Science |
6 |
4,443 |
May-01-2018, 09:58 AM |
|
|
Thread: How to split data into trainSet and testSet retaining the index continuous
Post: How to split data into trainSet and testSet retain...
Hi,
I have a dataset and I want to split it into trainSet and testSet in the specified size. I use the below function to split but it is splitting randomly, but I want to split continuously:
X_train,... |
|
Raj |
Data Science |
1 |
2,494 |
Apr-30-2018, 01:48 PM |
|
|
Thread: How to update trainSet on each iteration
Post: RE: How to update trainSet on each iteration
I run the code successfully,
runfile('D:/Mekala_Backupdata/PythonCodes/randonForest_SVR.py', wdir='D:/Mekala_Backupdata/PythonCodes')
Linear SVM
Accuracy: 0.25
1) x3 0.000... |
|
Raj |
Data Science |
6 |
4,443 |
Apr-29-2018, 11:15 AM |
|
|
Thread: How to update trainSet on each iteration
Post: RE: How to update trainSet on each iteration
Where to call this fit() in my code, |
|
Raj |
Data Science |
6 |
4,443 |
Apr-28-2018, 01:03 AM |
|
|
Thread: How to update trainSet on each iteration
Post: How to update trainSet on each iteration
Hi,
I am using random forest method to predict some response variable. My train test is 70% of input data and test data is 30%. But for prediction of 30% data, I want to add to each ith row in to trai... |
|
Raj |
Data Science |
6 |
4,443 |
Apr-27-2018, 03:25 PM |
|
|
Thread: How to update data on each iteration
Post: How to update data on each iteration
Hide/ShowHi,
I am using random forest method to predict some response variable. My train test is 70% of input data and test data is 30%. But for prediction of 30% data, I want to add to each ith row i... |
|
Raj |
General Coding Help |
1 |
2,481 |
Apr-23-2018, 02:08 PM |
|
|
Thread: how to read data from xml file
Post: RE: how to read data from xml file
which command I should write after
if (attr.tag=='author' or attr.tag=='title' or attr.tag=='price'):
print (attr.text)
Not just one tiltle, but in all titles, I wish only to take th... |
|
Raj |
Web Scraping & Web Development |
7 |
5,282 |
Apr-14-2018, 12:14 PM |
|
|
Thread: how to read data from xml file
Post: RE: how to read data from xml file
# -*- coding: utf-8 -*-
"""
Created on Fri Apr 13 20:33:17 2018
@author: user
"""
#from xml.dom import minidom
#
#doc = minidom.parse("D:\Mekala_Backupdata\PythonCodes\input.xml")
#import xml.etr... |
|
Raj |
Web Scraping & Web Development |
7 |
5,282 |
Apr-14-2018, 10:31 AM |
|
|
Thread: how to read data from xml file
Post: RE: how to read data from xml file
It still give error,
Below is my code:
[python][python]import xml.etree.cElementTree as ET
tree = ET.ElementTree('input.xml')
root = tree.getroot()
for books in root:
if (books.tag=='book'):
... |
|
Raj |
Web Scraping & Web Development |
7 |
5,282 |
Apr-14-2018, 05:26 AM |
|
|
Thread: how to read data from xml file
Post: how to read data from xml file
I have excell file, I use below code:
# -*- coding: utf-8 -*-
"""
Created on Fri Apr 13 20:33:17 2018
@author: user
"""
#from xml.dom import minidom
#
#doc = minidom.parse("D:\Mekala_Backupdata\Pyth... |
|
Raj |
Web Scraping & Web Development |
7 |
5,282 |
Apr-13-2018, 02:21 PM |
|
|
Thread: How to define train set and test set
Post: RE: How to define train set and test set
|
Raj |
Data Science |
6 |
7,906 |
Mar-08-2018, 01:04 PM |
|
|
Thread: How to define train set and test set
Post: RE: How to define train set and test set
Sir,
I can not get an example, do you have any precise command(code)to do this? |
|
Raj |
Data Science |
6 |
7,906 |
Mar-07-2018, 01:15 PM |
|
|
Thread: How to define train set and test set
Post: RE: How to define train set and test set
Yes, I am using sklearn
my definition as below:
X_train,X_test,Y_train,Y_test=train_test_split(x,y,test_size=0.3,random_state=0)
My data size is 1000, and I want to split first 700 as train data and n... |
|
Raj |
Data Science |
6 |
7,906 |
Mar-05-2018, 01:39 PM |
|
|
Thread: How to define train set and test set
Post: How to define train set and test set
Hi,
I am using random forest method for regression,
I sue below comment:
X_train,X_test,Y_train,Y_test=train_split(x,y,test_size=0.3,random_state=0)
With above comment, it is splitting randomly, but... |
|
Raj |
Data Science |
6 |
7,906 |
Mar-02-2018, 02:56 PM |