This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package krangl.experimental | |
| import com.univocity.parsers.common.record.Record | |
| import com.univocity.parsers.tsv.TsvParser | |
| import com.univocity.parsers.tsv.TsvParserSettings | |
| import krangl.* | |
| import java.io.Reader | |
| /** | |
| * @author Holger Brandl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| manufacturer model displ year cyl trans drv cty hwy fl class | |
| audi a4 1.8 1999 4 auto(l5) f 18 29 p compact | |
| audi a4 1.8 1999 4 manual(m5) f 21 29 p compact | |
| audi a4 2 2008 4 manual(m6) f 20 31 p compact | |
| audi a4 2 2008 4 auto(av) f 21 30 p compact | |
| audi a4 2.8 1999 6 auto(l5) f 16 26 p compact | |
| audi a4 2.8 1999 6 manual(m5) f 18 26 p compact | |
| audi a4 3.1 2008 6 auto(av) f 18 27 p compact | |
| audi a4 quattro 1.8 1999 4 manual(m5) 4 18 26 p compact | |
| audi a4 quattro 1.8 1999 4 auto(l5) 4 16 25 p compact |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @file:DependsOn("org.apache.hadoop:hadoop-common:2.7.0") | |
| @file:DependsOn("com.github.khud:kshell-repl-api:0.2.2-1.2.41") | |
| @file:DependsOn("sparklin:jline3-shaded:0.2-SNAPSHOT") | |
| @file:DependsOn("sparklin:kshell:0.2-SNAPSHOT") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env kscript | |
| @file:DependsOn("org.apache.kafka:kafka-clients:1.1.0") | |
| import java.util.Properties | |
| import org.apache.kafka.clients.producer.KafkaProducer | |
| import org.apache.kafka.clients.producer.ProducerRecord | |
| import org.apache.kafka.common.serialization.StringSerializer | |
| val properties = Properties() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // repl class-path | |
| @file:DependsOn("org.apache.hadoop:hadoop-common:2.7.0") | |
| @file:DependsOn("com.github.khud:kshell-repl-api:0.2.2-1.2.41") | |
| @file:DependsOn("sparklin:jline3-shaded:0.2-SNAPSHOT") | |
| @file:DependsOn("sparklin:kshell:0.2-SNAPSHOT") | |
| @file:DependsOn("de.mpicbg.scicomp:kutils:0.10") | |
| @file:DependsOn("com.github.holgerbrandl:kscript-support:1.2.4") | |
| @file:DependsOn("de.mpicbg.scicomp.joblist:joblist-kotlin:1.2") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env kscript | |
| // repl class-path | |
| @file:DependsOn("org.apache.hadoop:hadoop-common:2.7.0") | |
| @file:DependsOn("com.github.khud:kshell-repl-api:0.2.2-1.2.41") | |
| @file:DependsOn("sparklin:jline3-shaded:0.2-SNAPSHOT") | |
| @file:DependsOn("sparklin:kshell:0.2-SNAPSHOT") | |
| // user classpath | |
| @file:DependsOn("com.offbytwo:docopt:0.6.0.20150202","log4j:log4j:1.2.14") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.deeplearning4j.datasets.datavec | |
| import org.datavec.api.records.reader.impl.csv.CSVRecordReader | |
| import org.datavec.api.split.FileSplit | |
| import org.nd4j.linalg.io.ClassPathResource | |
| fun main(args: Array<String>) { | |
| val recordReader = CSVRecordReader(0, ',').apply{ | |
| // initialize(FileSplit(File("/Users/brandl/projects/deep_learning/dl4j/dl4j-test-resources/target/classes/iris.txt"))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package playground | |
| import DATA_ROOT | |
| import org.datavec.api.io.labels.PathLabelGenerator | |
| import org.datavec.api.split.CollectionInputSplit | |
| import org.datavec.api.writable.IntWritable | |
| import org.datavec.api.writable.Writable | |
| import org.datavec.image.recordreader.ImageRecordReader | |
| import org.deeplearning4j.datasets.datavec.RecordReaderDataSetIterator | |
| import java.io.File |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Full thread dump | |
| "main@1" prio=5 tid=0x1 nid=NA waiting | |
| java.lang.Thread.State: WAITING | |
| at sun.misc.Unsafe.park(Unsafe.java:-1) | |
| at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175) | |
| at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039) | |
| at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442) | |
| at org.apache.camel.component.seda.SedaPollingConsumer.receive(SedaPollingConsumer.java:41) | |
| at org.apache.camel.impl.ConsumerCache.receive(ConsumerCache.java:202) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "main@1" prio=5 tid=0x1 nid=NA waiting | |
| java.lang.Thread.State: WAITING | |
| at java.lang.Object.wait(Object.java:-1) | |
| at java.lang.Object.wait(Object.java:502) | |
| at org.deeplearning4j.models.word2vec.wordstore.VocabConstructor$VocabRunnable.awaitDone(VocabConstructor.java:536) | |
| at org.deeplearning4j.models.word2vec.wordstore.VocabConstructor.buildJointVocabulary(VocabConstructor.java:221) | |
| at org.deeplearning4j.bagofwords.vectorizer.BaseTextVectorizer.buildVocab(BaseTextVectorizer.java:53) | |
| at org.deeplearning4j.bagofwords.vectorizer.BaseTextVectorizer.fit(BaseTextVectorizer.java:58) | |
| at org.deeplearning4j.bagofwords.vectorizer.TfidfVectorizerTest.testTfIdfVectorizer(TfidfVectorizerTest.java:71) | |
| at sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-1) |