Skip to content

Instantly share code, notes, and snippets.

View samikrc's full-sized avatar

Samik R samikrc

  • Bangalore, India
  • 12:07 (UTC +05:30)
View GitHub Profile
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</configSections>
<entityFramework>
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
<parameters>
<parameter value="v11.0" />
@samikrc
samikrc / gist:a2738a13e12dfb1381c3
Created November 8, 2015 17:47
word2vec code using dl4j
CollectionSentenceIterator collectionSentenceIterator = new CollectionSentenceIterator(smsPreprocessor, inputLines);
InMemoryLookupCache cache = new InMemoryLookupCache();
WeightLookupTable table = new InMemoryLookupTable.Builder()
.vectorLength(25)
.useAdaGrad(false)
.cache(cache)
.lr(0.025f).build();
Word2Vec word2VecModel = new Word2Vec.Builder()
.minWordFrequency(5).iterations(3)