|
i'm working on project related to Data Mining.This project called Medical Data
Analysis, it is a program that analyze medical data, in my case the data is
Breast Cancer Wisconsin. I am using WEKA as my data mining tools and C# as
my front end
and i can't create any thing in this matter
can anyone help me in this
|
|
|
|
|
kimo_4u wrote: can anyone help me in this It's quite possible that they can, but you need to give some more specific details about what problems you are having, it's unlikely that anyone will be able to guess.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
i want to use weka libraries to use some filter and classifications
filter like Replace Missing Values and others?
|
|
|
|
|
Okay, so you have stated what you want to use, but you haven't actually stated any problems here - or shown us any code that you need help with. What, exactly, are you expecting from us?
|
|
|
|
|
as you have said i know what i want to do
but the problem is that i don't How to Do So?
so if anybody might have a little experience can help me ?
thanks
|
|
|
|
|
Well, this[^] tells you what you need to do to set up WEKA with .NET.
This[^] is a handy place to start with WEKA (links to FAQs, etc). Beyond those links, I don't see how we can help you without actually writing your application for you.
|
|
|
|
|
Richard MacCutchan wrote: unlikely that anyone will be able to guess
Or not be in the mood for guessing like I am
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
|
I see the problem. You have a syntax error there.
|
|
|
|
|
..and it needs PRE tags;
dfghfhgfh();
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
It would appear that you have a PEBKAC error going on.
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Please stand in front of my pistol, smile and wait for the flash - JSOP 2012
|
|
|
|
|
2 and half years here and you're still not doing anything but testing the keys on your keyboard?
|
|
|
|
|
I think he needs to test other things besides the keys
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
That's in Wales, isn't it?
|
|
|
|
|
Carefull!
Sorry, my fault - I meant "near Caerphilly"
Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water
|
|
|
|
|
Hello,
I have a class called LocalSource that accepts a control parameter in it's constructor:
public LocalSource(Control ViewingWindow)
{
this.ViewingWindow = ViewingWindow;
}
The object being passed in has a delegate that accepts a Bitmap:
private delegate void NewFrameDelegate(Bitmap NewFrame);
From my LocalSource class I want to check the passed in control for the NewFrameDelegate, and if it's been assigned call it and pass a Bitmap. Is this possible?
Thanks in advance.
|
|
|
|
|
I don't know if this is what you trying to do, but checking delegates is like for every other object:
if(NewFrameDelegate!=null)
NewFrameDelegate();
No more Mister Nice Guy... >: |
|
|
|
|
|
You're thinking of delegates and events backwards. If you want LocalSource to call delegates in listeners, then it should publish an event, and listeners should hook onto it, i.e.
class LocalSource {
public event NewFrameDelegate NewFrame;
private void MoveToNewFrame(){
Bitmap bitmap = SomeMethodToMakeFrameImage();
NewFrameDelegate newFrame = NewFrame;
if(newFrame != null) newFrame(bitmap);
}
}
class ViewingWindow : UserControl {
void SomeMethod() {
LocalSource source = new LocalSource(this);
source.NewFrame += bitmap => {
};
}
}
Alternatively, if you want the method to be called from the source, then you shouldn't be using a delegate at all, but an interface:
interface INewFrameListener {
void NewFrame(Bitmap bitmap);
}
class LocalSource {
private void MoveToNewFrame(){
Bitmap bitmap = SomeMethodToMakeFrameImage();
INewFrameListener newFrameListener = ViewingWindow as INewFrameListener;
if(newFrameListener != null) newFrameListener.NewFrame(bitmap);
}
}
class ViewingWindow : UserControl, INewFrameListener {
void NewFrame(Bitmap bitmap) {
}
}
|
|
|
|
|
as first, delegate should be public, not private.
Then , Control is a generic type, but only your specific controls has this delegate. Then, you should make a cast.
var specificControl= ViewingWindow as YourType;
if(specificControl!=null && speciicControl.NewFrameDelegate!=null )
speciicControl.NewFrameDelegate.
Just an extra note: parameter names never should start with maiusc: maiusc is used for properties and methods
|
|
|
|
|
i am using this command in sql server it is executed....
/** update product set quantity= quantity - 10 where productname='sugar' ****/
but how to use same command in windows form app...
please give me any idea about this..
|
|
|
|
|
Use a SqlCommand for the actual sql text, and use a SqlConnection for the connection to the database. A simple search will reveal millions of hits on these topics. You need to use the ExecuteNonQuery method for your command.
|
|
|
|
|
+5
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
|
Pete O'Hanlon wrote: Univote countered.
Once again.
|
|
|
|
|
You can downvote Pete's answer, but that doesn't make it less correct. It's a very basic piece of work, and there's an copy/paste example in the documentation.
If that's too complex, then start studying.
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|