Welcome to Dream.In.Code
Become an Expert!

Join 149,510 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,373 people online right now. Registration is fast and FREE... Join Now!




How to write a batch file to time a weka program

 
Reply to this topicStart new topic

How to write a batch file to time a weka program

norxxyy
12 Jul, 2007 - 04:46 PM
Post #1

New D.I.C Head
*

Joined: 12 Jul, 2007
Posts: 2


My Contributions
Hi,

This is the dos command to start timer. Is the dos timer correct and how do I get it to time the weka XMeans clusters listed below the dos code?

Thank you.
norxxyy.

CODE

@echo off
date /t
time /t

REM other commands

date /t
time /t


This is the weka command and it is correct.
CODE
C:\Program Files\Weka-3-5>java weka.clusterers.MakeDensityBasedClusterer -t Z:\Noreen\Thesis_ng\CV_10x10\sample1a.arff -x 10 -W
weka.clusterers.XMeans -- -I 1 -M 1000 -J 1000 -L 2 -H 4 -B 1.0 -C 0.5 -D "weka.core.EuclideanDistance " -S 10

User is offlineProfile CardPM
+Quote Post

NickDMax
RE: How To Write A Batch File To Time A Weka Program
21 Jul, 2007 - 10:15 PM
Post #2

2B||!2B
Group Icon

Joined: 18 Feb, 2007
Posts: 2,867



Thanked: 53 times
Dream Kudos: 550
My Contributions
Well your questions about weka and XMeans I don't think anyone here will be able to answer. All I know is that you are doing something with Data mining.

It seem that you are asking about timing a program. I think it would be better to do with with VBS or a Powershell script than in a dos batch file.

If you call the weca functions from within a java program rather than using the command line interface you should much more control over such things.
User is offlineProfile CardPM
+Quote Post

norxxyy
RE: How To Write A Batch File To Time A Weka Program
22 Jul, 2007 - 06:28 AM
Post #3

New D.I.C Head
*

Joined: 12 Jul, 2007
Posts: 2


My Contributions
QUOTE(norxxyy @ 12 Jul, 2007 - 05:46 PM) *

Hi,

This is the dos command to start timer. Is the dos timer correct and how do I get it to time the weka XMeans clusters listed below the dos code?

Thank you.
norxxyy.

CODE

@echo off
date /t
time /t

REM other commands

date /t
time /t


This is the weka command and it is correct.
CODE
C:\Program Files\Weka-3-5>java weka.clusterers.MakeDensityBasedClusterer -t Z:\Noreen\Thesis_ng\CV_10x10\sample1a.arff -x 10 -W
weka.clusterers.XMeans -- -I 1 -M 1000 -J 1000 -L 2 -H 4 -B 1.0 -C 0.5 -D "weka.core.EuclideanDistance " -S 10



NickDMax, thanks for your help.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/7/09 07:35PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month