Quantcast
Channel: KNIME RSS
Viewing all 4157 articles
Browse latest View live

Splitting column into numbers and strings

$
0
0

Hello there!

Lets say I have a column with a list of numbers attached to units and I would like to separate the numbers from the units so that I will have 2 new columns. Is there any simple way to achieve that?

There are of course different lengths of numbers and different units (which may also contain numbers). So basically what I'm trying is to split the column the first time a letter shows up.

Help is much appreciated!

Example:

column_oldcolumn_numbercolumn_unit
3250mg/kg3250mg/kg
>300mg/kg>300mg/kg
180ppm/6H180ppm/6H
15gm/m315gm/m3
1gm/m3/2H1gm/m3/3H

 


Skip rest of loop on error but continue workflow

$
0
0

hi @all,

i have a question and did not find an answer in the forum.

Inside the workflow there is a Table Row To Variable Loop Start for 3 Rows. Sometimes  an error occures on one node. I catch this error and send an email. So far so good. 

But i want the loop to stop skip all iterations if this error occures so i don't get 3 emails. Also the rest of the workflow should proceed as normal. > error > catch > email > skip loop > proceed

I tried to manipulate the currentIteration variable before the loop end node to skip the execution but that does not work. 

 

I hope someone has a solution. Thank you.

Why does not MetaCost weka node exist anymore?

$
0
0

The following node

https://www.knime.org/files/nodedetails/weka_classifiers_meta_MetaCost.html

does not exist anymore in the KNIME 3.2.1

I'm wondering whether CostSensitiveClassifier with M option setted to false is equivalent to MetaCost specified in Pedro Domingos: MetaCost: A general method for making classifiers cost-sensitive. In: Fifth International Conference on Knowledge Discovery and Data Mining, 155-164, 1999.

Changing the date filed dynamically for an API call

$
0
0

Hello Knime users,

I am looking for a solution in KNIME that changes the to and from dates in my API call dynamically based on the max(date) in my database.  This way I can schedule the workflow and have the data flow into the db everyday.  

Right now I am using the GET Request Node for the api call.

What nodes/workflow would i need to use to acheive this?  

Thanks,

 

MV

Workspace error on Windows Server 2012 R2

$
0
0

When running KNIME on above OS I get follwing error:

Could not launch the product because the specified workspace cannot be created.  The specified workspace directory is either invalid or read-only

This is 100% reproducable

1. Create new folder

2. set it as workspace

3. do nothing in knime

4. close knime

5. restart knime

6- Above error appears

user has admin privilege.

What is causing this issue and how can it be solved?

Time Series MLP Prediction with exogenous variable

$
0
0

Hi everyone,

I want to do a time series forecast with MLP and exogenous variable. I found MLP node but I do not know how to add exogenous values.

In the attached table are 3 columns: time t, data y and exogenous x

Data y is the history data and I want to forecast about 2 days (109 Datapoints) of y (The empty values in the data y column)

t: is the Time

y: are supporting-values

x: is an Event. 100 means there is an event and 0 means there is no event.

We have seasoanality in Y by a Week (96*7 datapoints) and by a Day (96 datapoints). One Day has 96 datapoints.

A german Description of usinig MLP-Networks to predict timeseries with exogeneous variables is here:

http://www2.inf.uos.de/papers_html/um_5_96/start.html

 

Editing the wiki

$
0
0

I am still relatively new to KNIME and I want to add knowledge to the wiki while I am going through the learning process. Is it possible to edit wiki pages at the moment? I haven't found an edit button and when I click on "create content" I can only select to create a new forum topic.

I am logged in with this account while browsing the wiki.

Scatter plot of cluster center only ..

$
0
0

Dear All,

I just started to explore somebasic functions of KNIME.

Actually, reading a simple excel spreadsheet, I could plot with the scatter plot function the pre-defined k-mean "cluster centers", but could not see the "clustered data". Many thanks for your help ..

Best


String Replacer - Why do my regex commands not work?

$
0
0

Hello!

I'd like to use the String Replacer Node to remove the content of every cell that starts with anything except a number. My idea was to use the expression ^[^0-9] or ^[^0-9].* inside the "Pattern" field but neither of them works. Then I tried some simpler regex expressions but whatever I try nothing happens.

Is there something else I have to consider for regex expressions to work here that I'm overlooking?

 

Greetings

Timestamps comparison like vlookup TRUE/FALSE

$
0
0

I have the following columns:

Obviously, the 23.Jun. 2015, is included in the column appt_date. Which node I need to use,in order to compare every cell of headerstrartt with everycell in appt_date and create a third column that will write back TRUE (if headerstartt date is included in appt_date) or FALSE if it is not included.

I tried rule based filter, column  comparator, none made what I wanted.

Please help!

 

 

 

Group Loop Start by "Groupby"

$
0
0

Hi,

I have unique serial numbers stored in the column "SerialNumber"

 I do "Group by" having as groups the "serial number" and in Manual aggregation several unique counts and concatinations of the other exisitng columns. My result looks like this:

I did the above only for 1 serial numbers (Row filter=1506A80D), as a test to see if it works.

Now, I want to LOOP and  do the same process for all the serial numbers.

My end result should be one table with serial numbers per row.

How can I do that properly by using the Group Loop Start? Should it be like that?

evaluating k-medoids clusters

$
0
0

Hi all,

How can I evaluate the clusters resulting from using k-medoids method?

I want to measure precision, recall, f-measure and accuracy

I tried to use scorer and entorpy nodes, but no results appear

Which node can I use? and What is the Input (or the columns or components of the input)?

Thanks

Execute a node after DBWRITE node.

$
0
0

I'm using the DB WRITER node to insert rows into a database. There is no output port from that node.  I want to run anotehr node, but only after the DB WRITE completes.  Is there a trick I can do to make tha happen?  I was thinking perhaps using a dummy flow variable.

Google Analytics node: Loop, iterate through records and then change start-date, end-date

$
0
0

Hello together,

I am using Google analytics query to populate the dataset. I managed to pass the startIndex and loop until all records are loaded. I did that using the Generic loop start and variable condition loop end to stop once the number of rows equals zero. 

But now I ran into the issue that the Google Analytics API is sampling the data if I select a whole month. 

I managed to set up the date generator and with a time shift node I am creating some time ranges. These are passed over as flow variables to the Google Analytics node. I put this in a recursive loop but it works just for one iteration and stops with the message "Errors overwriting node settings with flow variables: Unknown variable "start-date"".

In general I know what I'd like to do: The loop shall iterate with the current date set until the reply from the Google Analytics node is zero rows and then switch to the next date set (until the end). But how can I do that? Or is there an even easier way to solve it?

Any help would be greatly appreciated.

Thanks a lot.

Merging cells with the same name

$
0
0

 Hey,

This might be silly, but I haven't figured it out.

So I have this 2 columns:

Website Pageviews 

A                     3

A                     1

A                     2

A                     2

How can I merge the websites with the same name and have the pageviews summed for each one?

 

Thanks,


database connection of ms sql server 2012

$
0
0

Hi,

I am not able to connect to the sql server 2012 through knime 

the server address for my sql server  is " ADTLPT555\SQLEXPRESS"

and the syntax i use for  database configuration in knime and tried it through database reader node and even throught writer node 

"jdbc:sqlserver://ADTLPT555\SQLEXPRESS:1433;databaseName=test"

the error i currently encountered is "connection timeout to my port 1433" .

Please help!!!!!

 

Is Windows Batch Execution Issue Resolved Yet?

$
0
0

I found a prior thread from 2013 reporting an issue with batch execution that I'm experiencing myself.  The thread acknowledged it was a known issue but no solution was available.  Hoping that after 3 years someone may have determined how to handle this.

 

I have a windows batch file running a workflow.  It runs just jine.  However after the workflow execution completes, control never returns back to the batch file for continued of the script.  I have to manually close the console window upon workflow execution completion for the batch file to continue.  I want to string a number of workflow executions together in a single batch job to run unattended and hoping someone has a way to do that.

Sample:

call "c:\Program Files\KNIME\knime.exe" -consoleLog -noexit -nosplash -application org.knime.product.KNIME_BATCH_APPLICATION -workflowDir="D:\KnimeWorkflows\Prod\knime-workspace\ERPDW Dynamics\Load Dimension Table\AM DIMBOM"
echo "Completed"

call "c:\Program Files\KNIME\knime.exe" -consoleLog -noexit -nosplash -application org.knime.product.KNIME_BATCH_APPLICATION -workflowDir="D:\KnimeWorkflows\Prod\knime-workspace\ERPDW Dynamics\Load Dimension Table\AM DIMCustomer"
echo "Completed"

...

Stack together 2 tables

$
0
0

I use the `Java Snippet Row Splitter` to seperate my rows so that they can be processed in different workflow branches depending on the contents of the rows. But eventually I want to join the rows back together. I looked at several nodes in the repository but I could not find anything that could merge these rows back together. A join would not make sense because each row is independent from all other rows. I just want to stack two tables with equal column names+types on top of each other to form a new table.

 

How can I accomplish this in KNIME?

How to make a date loop with specific interval days?

$
0
0

Hi Everybody,  

I`m new in Knime programming and I am stuck with what I believe to be a simple task. How can I make a date loop and stop it in the present date? 

I want to make a date loop with periods of 360 days from 01/01/1988 to present day (always updated). I tried with a recursive loop but it failed.

I think the workflow starts like this: 

Table creator Node (with date in string format) -> String to Date Time Node -> Date time Switch + loop 

Any tips? 

 

I appreciate a lot any help.

Best Regards, 

Eduardo. 

Plot Decision Trees Boundaries

$
0
0

Hi everybody, I was looking some slides posted by Dean Abbot about Model Ensembles (see this URL http://bit.ly/2daRspH), and I saw the slide 18 that shows the boundaries for several models. 

https://s14.postimg.org/71gc1huk1/Slide.png

I wonder how can I plot such boundaries. Beforehand I assume that it must be a scatter plot. 

I'am also attaching an example workflow, but I could manage to make the above plot

Thank you

 

Viewing all 4157 articles
Browse latest View live