https://kotlinlang.org logo
Docs
Join the conversationJoin Slack
Channels
100daysofcode
100daysofkotlin
100daysofkotlin-2021
advent-of-code
aem
ai
alexa
algeria
algolialibraries
amsterdam
android
android-architecture
android-databinding
android-studio
androidgithubprojects
androidthings
androidx
androidx-xprocessing
anime
anko
announcements
apollo-kotlin
appintro
arabic
argentina
arkenv
arksemdevteam
armenia
arrow
arrow-contributors
arrow-meta
ass
atlanta
atm17
atrium
austin
australia
austria
awesome-kotlin
ballast
bangladesh
barcelona
bayarea
bazel
beepiz-libraries
belgium
berlin
big-data
books
boston
brazil
brikk
budapest
build
build-tools
bulgaria
bydgoszcz
cambodia
canada
carrat
carrat-dev
carrat-feed
chicago
chile
china
chucker
cincinnati-user-group
cli
clikt
cloudfoundry
cn
cobalt
code-coverage
codeforces
codemash-precompiler
codereview
codingame
codingconventions
coimbatore
collaborations
colombia
colorado
communities
competitive-programming
competitivecoding
compiler
compose
compose-android
compose-desktop
compose-hiring
compose-ios
compose-mp
compose-ui-showcase
compose-wear
compose-web
connect-audit-events
corda
cork
coroutines
couchbase
coursera
croatia
cryptography
cscenter-course-2016
cucumber-bdd
cyprus
czech
dagger
data2viz
databinding
datascience
dckotlin
debugging
decompose
decouple
denmark
deprecated
detekt
detekt-hint
dev-core
dfw
docs-revamped
dokka
domain-driven-design
doodle
dsl
dublin
dutch
eap
eclipse
ecuador
edinburgh
education
effective-kotlin
effectivekotlin
emacs
embedded-kotlin
estatik
event21-community-content
events
exposed
failgood
fb-internal-demo
feed
firebase
flow
fluid-libraries
forkhandles
forum
fosdem
fp-in-kotlin
framework-elide
freenode
french
fritz2
fuchsia
functional
funktionale
gamedev
ge-kotlin
general-advice
georgia
geospatial
german-lang
getting-started
github-workflows-kt
glance
godot-kotlin
google-io
gradle
graphic
graphkool
graphql
graphql-kotlin
graviton-browser
greece
grpc
gsoc
gui
hackathons
hacktoberfest
hamburg
hamkrest
helios
helsinki
hexagon
hibernate
hikari-cp
hire-me
hiring
hongkong
hoplite
http4k
hungary
hyderabad
image-processing
india
indonesia
inkremental
intellij
intellij-plugins
intellij-tricks
internships
introduce-yourself
io
ios
iran
israel
istanbulcoders
italian
jackson-kotlin
jadx
japanese
jasync-sql
java-to-kotlin-refactoring
javadevelopers
javafx
javalin
javascript
jdbi
jhipster-kotlin
jobsworldwide
jpa
jshdq
juul-libraries
jvm-ir-backend-feedback
jxadapter
k2-early-adopters
kaal
kafka
kakao
kalasim
kapt
karachi
karg
karlsruhe
kash_shell
kaskade
kbuild
kdbc
kgen-doc-tools
kgraphql
kinta
klaxon
klock
kloudformation
kmdc
kmm-español
kmongo
knbt
knote
koalaql
koans
kobalt
kobweb
kodein
kodex
kohesive
koin
koin-dev
komapper
kondor-json
kong
kontent
kontributors
korau
korean
korge
korim
korio
korlibs
korte
kotest
kotest-contributors
kotless
kotlick
kotlin-asia
kotlin-beam
kotlin-by-example
kotlin-csv
kotlin-data-storage
kotlin-foundation
kotlin-fuel
kotlin-in-action
kotlin-inject
kotlin-latam
kotlin-logging
kotlin-multiplatform-contest
kotlin-mumbai
kotlin-native
kotlin-pakistan
kotlin-plugin
kotlin-pune
kotlin-roadmap
kotlin-samples
kotlin-sap
kotlin-serbia
kotlin-spark
kotlin-szeged
kotlin-website
kotlinacademy
kotlinbot
kotlinconf
kotlindl
kotlinforbeginners
kotlingforbeginners
kotlinlondon
kotlinmad
kotlinprogrammers
kotlinsu
kotlintest
kotlintest-devs
kotlintlv
kotlinultimatechallenge
kotlinx-datetime
kotlinx-files
kotlinx-html
kotrix
kotson
kovenant
kprompt
kraph
krawler
kroto-plus
ksp
ktcc
ktfmt
ktlint
ktor
ktp
kubed
kug-leads
kug-torino
kvision
kweb
lambdaworld_cadiz
lanark
language-evolution
language-proposals
latvia
leakcanary
leedskotlinusergroup
lets-have-fun
libgdx
libkgd
library-development
linkeddata
lithuania
london
losangeles
lottie
love
lychee
macedonia
machinelearningbawas
madrid
malaysia
mathematics
meetkotlin
memes
meta
metro-detroit
mexico
miami
micronaut
minnesota
minutest
mirror
mockk
moko
moldova
monsterpuzzle
montreal
moonbean
morocco
motionlayout
mpapt
mu
multiplatform
mumbai
munich
mvikotlin
mvrx
myndocs-oauth2-server
naming
navigation-architecture-component
nepal
new-mexico
new-zealand
newname
nigeria
nodejs
norway
npm-publish
nyc
oceania
ohio-kotlin-users
oldenburg
oolong
opensource
orbit-mvi
osgi
otpisani
package-search
pakistan
panamá
pattern-matching
pbandk
pdx
peru
philippines
phoenix
pinoy
pocketgitclient
polish
popkorn
portugal
practical-functional-programming
proguard
prozis-android-backup
pyhsikal
python
python-contributors
quasar
random
re
react
reaktive
realm
realworldkotlin
reductor
reduks
redux
redux-kotlin
refactoring-to-kotlin
reflect
refreshversions
reports
result
rethink
revolver
rhein-main
rocksdb
romania
room
rpi-pico
rsocket
russian
russian_feed
russian-kotlinasfirst
rx
rxjava
san-diego
science
scotland
scrcast
scrimage
script
scripting
seattle
serialization
server
sg-user-group
singapore
skia-wasm-interop-temp
skrape-it
slovak
snake
sofl-user-group
southafrica
spacemacs
spain
spanish
speaking
spek
spin
splitties
spotify-mobius
spring
spring-security
squarelibraries
stackoverflow
stacks
stayhungrystayfoolish
stdlib
stlouis
strife-discord-lib
strikt
students
stuttgart
sudan
swagger-gradle-codegen
swarm
sweden
swing
swiss-user-group
switzerland
talking-kotlin
tallinn
tampa
teamcity
tegal
tempe
tensorflow
terminal
test
testing
testtestest
texas
tgbotapi
thailand
tornadofx
touchlab-tools
training
tricity-kotlin-user-group
trójmiasto
truth
tunisia
turkey
turkiye
twitter-feed
uae
udacityindia
uk
ukrainian
uniflow
unkonf
uruguay
utah
uuid
vancouver
vankotlin
vertx
videos
vienna
vietnam
vim
vkug
vuejs
web-mpp
webassembly
webrtc
wimix_sentry
wwdc
zircon
Powered by Linen
datascience
  • n

    Nikky

    02/27/2019, 2:23 PM
    @holgerbrandl any idea why that kind thing happens?
    java.lang.ClassCastException: krangl.SimpleDataFrame cannot be cast to krangl.DataFrame
    h
    • 2
    • 3
  • m

    Maria Khalusova

    03/05/2019, 6:14 PM
    Hi folks! Anaconda are doing a Data Science survey. questions about programming languages include Kotlin, if anyone wants to represent, here's the link: https://twitter.com/anacondainc/status/1102984667442147328
    a
    • 2
    • 4
  • b

    bjonnh

    03/10/2019, 8:13 PM
    I usually recommend to stay away from "data science" books and instead focus on books on specific matters.
    ➕ 2
    d
    t
    • 3
    • 4
  • t

    thomasnield

    03/11/2019, 6:05 PM
    https://www.coursera.org/learn/discrete-optimization/
    t
    • 2
    • 1
  • t

    thomasnield

    03/12/2019, 1:49 PM
    @altavir that reminds me, remember the customer waiting queue simulation you helped with? I'm going to try and make the animation continuous... if I can get JavaFX to cooperate.
    a
    • 2
    • 3
  • t

    thomasnield

    03/12/2019, 1:50 PM
    I think I'm going to use that for my presentations this year. I'll make sure to credit you.
    a
    • 2
    • 1
  • t

    Thomas Legrand

    04/09/2019, 11:57 AM
    message has been deleted
    👍 3
    a
    j
    j
    • 4
    • 65
  • b

    bjonnh

    05/02/2019, 6:26 PM
    https://twitter.com/jontapson/status/1100190281641742336
    a
    • 2
    • 1
  • e

    elizarov

    05/04/2019, 1:19 PM
    If anyone needs an automatic differentiation engine in Kotin you can use this gist of mine (I don’t have time to turn it into an actual library). It is not the most optimal implementation in terms of performance, but it is quite easy-to-use in terms of API and has very concise and simple implementation + Kotlin DSL FTW. https://gist.github.com/elizarov/1ad3a8583e88cb6ea7a0ad09bb591d3d I’ts backwards-mode (back-propagation), so you get derivative of one output value by all input values in one pass. That is the thing you’d need to do gradient descent. Use it like this:
    val x = D(2) // define variable(s) and their values
    val y = grad { sqr(x) + 5 * x + 3 } // write formulae in grad context
    assertEquals(17.0, y.x) // the value of result (y)
    assertEquals(9.0, x.d)  // dy/dx
    👍 3
    a
    • 2
    • 24
  • m

    mccorby

    05/09/2019, 12:23 PM
    Hi, I'd need a weighted random operation. I saw Thomas'
    Kotlin Statistics
    includes it (and it's the one I'll probably use) but I am a bit confused about the libraries I read about here. Would
    KMath
    include this kind of operations in the future? Should I look into some other lib? Thanks!
    a
    • 2
    • 6
  • t

    thomasnield

    05/31/2019, 4:19 PM
    If you all can help me with a poll. https://twitter.com/thomasnield9727/status/1134493388236046336?s=09
    d
    a
    • 3
    • 3
  • t

    thomasnield

    07/08/2019, 3:52 AM
    There is a term describing the fallacy of equating a video game or board game AI with having real world applications and AGI capabities. For example, a chess algorithm that wins chess does not mean it can master strategy in corporate or military environments. Does anybody know what this term is? Reason I ask is because I'm considering writing about the fetish of video games in AI research. https://deepmind.com/blog/alphastar-mastering-real-time-strategy-game-starcraft-ii/
    v
    • 2
    • 1
  • j

    jimn

    09/20/2019, 6:56 AM
    is there anyone who has generalized serialization for hazelcast (or geode, or ignite? which i have yet to try out)
    a
    • 2
    • 1
  • m

    mccorby

    09/20/2019, 1:45 PM
    Is there a place I can start looking at?
    a
    • 2
    • 1
  • j

    jimn

    09/20/2019, 8:49 PM
    I am sick and tired of python, and there's nothing comfortable about it, but without CUDA or seriously tuned opencl backend I'm not going to waste my time training models at 1/50th the output
    a
    • 2
    • 3
  • a

    altavir

    09/25/2019, 8:50 AM
    Someone asked about kotlin for data sceience? Look here: https://www.jetbrains.com/careers/jobs/senior-java-kotlin-developer-kotlin-for-data-science-288/.
    🤩 1
    🔝 1
    👍 4
    m
    • 2
    • 5
  • j

    jmfayard

    09/26/2019, 11:22 AM
    Data-science friends, what do you think of this? https://kotlinfrompython.com/2017/10/29/when-will-your-project-grow-up-and-require-typesafe-code/
    a
    a
    j
    • 4
    • 48
  • j

    jimn

    09/28/2019, 4:13 PM
    people in this discussion seem to be like perl coders blissfully satisfied with thier methods and progress in accomplishing their goals, generally the question is "why do we need any less restrictive syntax"
    a
    • 2
    • 8
  • a

    altavir

    10/01/2019, 6:57 AM
    By the way, I plan to move pandas-like table API from my old project. I won't implement it inside kmath, but rather inside dataforge - more sophisticated piece made for more high-level data interaction (https://github.com/mipt-npm/dataforge-core/issues/19). I plan to proceed the same way as in kmath, meaning focusing on API, providing only basic implementation and then linking with existing libraries like tablesaw, krangl and maybe even pandas itself, when I finally get to native. It would be really good to discuss. what do we need from table API.
    j
    • 2
    • 2
  • j

    jimn

    10/02/2019, 8:26 AM
    kotlin has a better "score" than java, to be sure, for most situations. java is low entropy. The reason why Java is viable at all is because in early 90's, c++ was dominant, and there were a ton of limitations to the available late binding options; in c++ at the time, progress was generally a code-generation tool or or a precompiler of c++ extensions which emitted c++ virtuals. I don't think that the jvm evolution should stop with the current decisions of kotlin, personally. data science is heavily dependant on information thoery and to ignore the signposts where a given solution depends on approaching Shannon's limit is to reverse the efficiency of the solution in question. intelligence is based on comprehension. comprehension is the orthogoanl arrangement of information to align meaning with content. code is ultimately an expression of data.
    a
    a
    • 3
    • 32
  • j

    jimn

    10/19/2019, 5:28 PM
    @Amir Gur @altavir this is not directly the application of kotlin to big data -- however, my involvement with this has been to encourage implementation towards large first-order-predicate logic systems over the years. I'm casually refactoring this to Kotlin with the main author's blessing. https://kotlinlang.slack.com/archives/C2YH04E3S/p1571505768009700
    a
    • 2
    • 5
  • j

    jimn

    10/23/2019, 6:14 AM
    @altavir i have bookmarked kmath, fwiw. I still do wish the recipes were nearer to the front tho.
    a
    • 2
    • 1
  • j

    jimn

    10/23/2019, 6:20 AM
    i have a common usecase: really common. I have a table from csv: Date, Customer, ItemId, qty_sold, qty_returned what is the kmath recipe to pivot distinct ItemId to new columns Date, Customer, qty_sold_ItemId1 ,qty_returned_ItemId1, qty_sold_ItemIdN, qty_returned_ItemIdN,...
    a
    • 2
    • 3
  • b

    bjonnh

    11/08/2019, 11:16 PM
    @jimn Wait is that a way to read python dataframes in kotlin?
    a
    j
    • 3
    • 31
  • j

    jimn

    11/09/2019, 6:10 AM
    im not convinced you are working with large databases frequently from your comments. there is no simple option to harvest diverse legacy production database into some shiny new faster BI platform, that's consulting golden-handcuffs snake-oil. how would you move a 300 gigabyte relational database to bigquery or amazon for instance?
    a
    • 2
    • 2
  • b

    bjonnh

    11/11/2019, 6:32 PM
    never tried the java bindings
    a
    • 2
    • 6
  • b

    bjonnh

    11/11/2019, 6:35 PM
    did you try https://wiki-bsse.ethz.ch/pages/viewpage.action?pageId=26609113
    a
    • 2
    • 1
  • b

    bjonnh

    11/11/2019, 6:58 PM
    I see…
    a
    • 2
    • 8
  • r

    Rikardq

    11/25/2019, 8:46 PM
    Hi all 😃 I was looking at the kotlin-statistics project and the histogram implementation. I have this problem that I hope you have some input on. The idea is that in a calendar the business can set price points and the price will change night and weekend and holiday's even down to a minute precision. When the customer has done it's trip we have the interval in time and my idea was that I read up the price points (have not figured out how to store it yet) into a histogram and then lay over the interval over the histogram and we then get a total price and a price per bucket(pricepoint) Any thoughts on this? And is the kotlin-statistics good for this problem? Thanks 🙂
    a
    t
    • 3
    • 13
  • b

    breandan

    12/17/2019, 5:01 PM
    Enjoyed @altavir’s talk, especially the use of generics and scoping for type safe numerics:

    https://youtube.com/watch?v=LI_5TZ7tnOE▾

    👍 6
    a
    • 2
    • 7
Powered by Linen
Title
b

breandan

12/17/2019, 5:01 PM
Enjoyed @altavir’s talk, especially the use of generics and scoping for type safe numerics:

https://youtube.com/watch?v=LI_5TZ7tnOE▾

👍 6
a

altavir

12/17/2019, 5:01 PM
It is the new development, but the more I think about, the more I like it.
I believe that the core should be generic, it is also possible to add user-side extensions for more comfortable specialized experience: https://github.com/mipt-npm/kmath/tree/dev-pk/kmath-for-real (It probably needs to be adopted for the latest API).
The extension for real numbers is done by @Peter Klimai. I need to pull it into dev soon. But any feedback is appreciated. Specifically from @thomasnield since he requested them in the first place.
b

breandan

12/17/2019, 5:10 PM
It may be possible to avoid nesting by wrapping the context inside a monad, less verbose although less explicit
Kind of like this, but for arithmetic operations: https://kotlin.christmas/2019/17/
a

altavir

12/17/2019, 5:12 PM
Nesting is important here since one context generates another one. In order to get ND context for Complex numbers, you need to get ComplexField. So either you pass it as parameter to ND context constructor, or you can capture it from the external context.
File-level contexts (https://github.com/Kotlin/KEEP/pull/176#issuecomment-460148157) would solve the issue. But even if they are accepted, it is a long wait.
View count: 4