I have a set of data. The prediction is to be done to Data type. I am using Weka for the model. (like yyyy-MM-dd HH:mm:ss) What is the best way to use? I used many available ones but all give high error in my training data. Please kindly help me with this
What is the best model to predict Date type
810 Views Asked by harsh At
1
There are 1 best solutions below
Related Questions in DATETIME
- Python datetime.now() with timezone
- Create a list of sequential monthly dates in PHP given initial date and quantity
- DataTable RowFilter on Time component of DateTime column
- Joda DateTime Json date format issue
- how to create folder and file with datetime in wpf application
- String concatenation with padded integers
- What is the correct DateTime format in WebSQL to perform date comparison queries?
- how to get the time interval of a date and a datetime displayed as day,hour, min,seconds in sql
- DateTime.Now.ToString("HH:MM") allways gives 20:06
- How can I get the ctime and/or mtime of a file in Python including timezone?
- add time (char(8)) to date column
- MyBatis cannot work with joda DateTime?
- PHP Fatal error: Call to a member function format() on boolean
- Use DateTime format in a class but restrict time tokens
- Modify records to account for correct priority and order between two systems
Related Questions in WEKA
- ARFF file extension to csv binary executable
- How to cluster using kMeans in Weka?
- Difference between weka tool's correlation coefficient and scikit learn's coefficient of determination score
- How to export PCA from Weka
- scatter plot for a multiclass dataset with class imbalance and class overlapping
- Use significant attributes only, or use full set of attributes to build J48 model after checking information gain?
- Train And Use Classifier Weka In Java
- weka API import
- Prediction of sets
- Replace numbers with Boolean in r
- Weka instance.setValue arrayIndexOutOfBounsException
- How to run LibSVM Classifier with 10 fold cross validation from Weka from Linux commandline?
- Chained CostSensitiveClassifier
- How do I use custom stopwords and stemmer file in WEKA (Java)?
- Error trying to call .buildClassifier (Weka) in Java AndroidStudio
Related Questions in PREDICTION
- Train And Use Classifier Weka In Java
- Prediction of sets
- Extracting r.squared values from an lmList object
- Determine applied rules when using a classifier for prediction in Weka
- SciKit-learn for data driven regression of oscillating data
- Plot ROC curve of predictive model after internal validation with bootstrap method?
- Using Prolog to make a prediction based on the data in a Relational Database
- Counting majority vote in R
- Forecasting values along with corresponding years
- What is the best model to predict Date type
- How to write a multidimentional regression predictor using an RNN in tensorflow 0.11
- "bnlearn" usage in R for prediction of discrete variables
- scikit python - SVR regression: predicting multiple points results in the same repeating output
- Predict the values of the unknown numbers
- scikit-learn and mllib difference in predictions python
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The problem that you have is probably because Weka considers each date as it's own class which won't work for obvious reasons.
To solve this problem at first you should convert to a known one. Instead of trying to predict a date, try to predict an offset in days/months/years. Say if you need to predict at what day during the next year some event will happen instead of making a prediction like 11-08-2016, convert it to number of days since beginning of the year. Or if all events that you are trying to predict will happen since 2016 (and may happen during the next few years) try to predict number of days since 01-01-2016.
You can chose one of so called "regression analysis" algorithms that predict a number from a feature vector. I would suggest to try linear regression algorithm first, since it's fast and less likely to overfit your data, but you can also consider other algorithms like neural networks.
Beware that if you your feature vector contains dates, you should convert them to relative values first, since absolute date like (08-10-2014) would probably be considered as a nominal value by Weka and won't help to increase accuracy of the model, while such relative values as "age in years" or "time since last doctor visit" can be effectively used for prediction.