Channels

#mathematics

- р
Ролан

05/07/2021, 8:15 AMhttps://github.com/londogard/londogard-nlp-toolkit that the one,**@Hampus Londögård**, it is great. I haven't dived too deep into it, but could it be possible to make it compatible with tokenisation required in BERT?h- 2
- 14

- a
altavir

05/09/2021, 8:04 AMThis week on Friday (14.05.2021, 15:30, Moscow time) we will have presentation by**Andrey Kislitsyn, Aleksandra Novikova, Roland Grinis (**on they work with tensor API and implementation in KMath during spring internship. Title:**@Ролан**)**Multiplatform library for tensors**Abstract: Within the KMath library, we present a multiplatfom implementation of some of the basic functionality for tensors, as one would find in PyTorch's ATen library for example. In the talk, we shall discuss the algorithms we used, including broadcasting routines and numerical power methods for SVD. We will also touch upon applications to machine learning, with examples for OLS, PCA and NEURAL NETWORKS. Calendar link Multiplatform library for tensors Friday, May 14 · 15:30 – 16:30 Google Meet joining info Video call link: https://meet.google.com/vvn-dzkz-umb Or dial: (US) +1 346-702-3560 PIN: 487 432 197#👍 2р- 2
- 2

- i
Iaroslav Postovalov

05/09/2021, 10:57 AM**@breandan**I've sent a PR to Kotlingrad https://github.com/breandan/kotlingrad/pull/22b- 2
- 6

- z
Zhelenskiy

05/10/2021, 3:38 PMSuch code doesn't fail, but BigInt breaks the convention byCopy code`if (other is BigInt) compareTo(other) == 0 else error("Can't compare KBigInteger to a different type")`

- 1
- 2

- z
Zhelenskiy

05/10/2021, 4:43 PMMultiplication of BigInt and Int.MIN_VALUE doesn't work fine:Copy code`public operator fun times(other: Int): BigInt = if (other > 0) this * kotlin.math.abs(other).toUInt() else -this * kotlin.math.abs(other).toUInt()`

- 1
- 2

- z
Zhelenskiy

05/11/2021, 9:45 PMIncorrect parsing to BigInt of "" and "0x". Both are expected to return null, but first fails with an exception and second returns 0.- 1
- 2

- z
Zhelenskiy

05/12/2021, 8:51 AM**@altavir**Let the discussion about the core change be here. I suggested inventing fast power method for Rings.a- 2
- 35

- р
Ролан

05/14/2021, 1:35 PMJupyter notebooks by Andrei Kislitsin demonstrating examples of using tensors with kmath from the talk are available here: https://github.com/AndreiKingsley/kmath-tensors-example-jupyters👏 3- 1
- 1

- z
Zhelenskiy

05/15/2021, 11:17 PMWhat do you think about the following math-related kotlin lib: https://plus.qconferences.com/plus2021/presentation/differentiable-programming-kotlin?K 4a- 2
- 15

- a
altavir

05/22/2021, 3:51 PMHaving visualization capabilities is a game-changer for developing mathematic software. This example shows the difference between cubic spline interpolation and original function (KMath, fully multiplatform as always).👍 3👍🏿 1s- 2
- 3

- s
Spationaute

05/27/2021, 6:34 PMA nice feature would be a nice way to build defined matrices. Like in python ([[1,2,3],[4,5,6],[7,8,9]]) or better like matlab by omitting the comma and using line returns. There is nice syntax for HTML and SVG... I don't understand why we wouldn't have something nice and clean also...zaр- 4
- 56

- s
Spationaute

05/27/2021, 6:35 PM(Something like Mat { Vec {1,2,3}; Vec {4,5,6}; Vec {7,8,9}} could be close enough)a- 2
- 1

- a
altavir

05/28/2021, 7:49 AM**@Zhelenskiy**concerning equality, it is not an obvious thing. First, equality should be symmetrical, it means you can't override it without thinking thirst. Also, there is a problem with performace. For example, if you take larget matrices, the content equality could be greatly time-consuming. So overriding equals could lead to improper use. For now I decided not to use equals for comparison for structures. One of the reason is that we in some cases use inline classes that lack identity.👍 1ez- 3
- 7

- g
George Pandian

06/26/2021, 7:02 PMHi team, Glad I found this channel. Very basic question though I'd be happy if someone could help please. What is/are number/numbers? To visualise it , I am finding it difficult and the current symbols does not provide the meaning. Also if number are symbols, then symbols come from maths (arch, line etc....) Which is the superset or holds the number.😶 2ab- 3
- 5

- h
Hampus Londögård

07/17/2021, 2:53 PMDoes

support sparse arrays?`multik`

aрi- 4
- 18

- b
breandan

07/24/2021, 11:04 PM - h
Hampus Londögård

07/26/2021, 1:41 PMLooking a little at Kmath, how am I supposed to use the

like`LinearSpace`

. More exactly the extension-functions like`EjmlLinearSpaceFSCC`

I've tried to use the`Matrix<Float>.toEjml()`

syntax but it doesn't work. Not sure how else I'd get those to work?`with (EjmlLinearSpaceFSCC) { code... }`

a- 2
- 10

- a
altavir

08/16/2021, 7:37 PMThe latest PR brings to

finalized optimization and interpolation API as well as unique optimization technique called quasi-optimal weights method (https://arxiv.org/abs/physics/0604127). https://github.com/mipt-npm/kmath/pull/404. This feature finalizes the feature set for 0.3.0.`KMath`

🤠 2K 8рp- 3
- 5

- a
Andrew

09/16/2021, 12:35 AMI was benchmarking some of my own kotlin code vs BigInteger to test performance. In doing so I eventually copied the BigInteger.java source to my own project so I could edit some things. Without any changes that was running about 2-3x slower at least for multiplication (same speed as my kotlin algorithms). Is there any explanation on why there is a speed difference using the library directly vs source code I imported from it?az- 3
- 28

- p
Pavel Gorgulov

10/11/2021, 6:46 PMMultik 0.1 released with complex numbers, new linear algebra methods, improved performance and other features https://blog.jetbrains.com/kotlin/2021/10/multik-0-1-is-out/ Slack Conversation👍 3🎉 3a- 2
- 11

- a
altavir

10/12/2021, 5:17 PM**@Pavel Gorgulov**this seems to be wrong if I remember correctly:p- 2
- 1

- a
altavir

10/17/2021, 2:35 PM**@Pavel Gorgulov**I am making a KMath adapter for Mutik (so one can use Multik internals with KMath API). There are some questions.p- 2
- 9

- a
altavir

10/17/2021, 6:08 PMFinally made Multik wrapper work. Performance for linear add operations is of the same order for KMath-specialized buffer, Viktor and Multik (about 10-20% difference which is not relevant). It is much faster for**@Ролан**'s tensor in-place operations (like 300%). I guess that memory allocation is the most expensive thing for simple operations. In KMath it is possible to do memory buffer pooling inside fixed size algebra context. I wonder if it makes sense to do.🎉 4iр- 3
- 6

- e
ESchouten

10/22/2021, 4:43 PMInteresting library containing features including geometry functions like clothoid, fresnel etc https://github.com/tum-gis/rtrona- 2
- 1

- a
altavir

10/22/2021, 5:52 PMI have an idea (and not only as IDE). There are a lot of scientific and mathematic libraries in Kotlin so it would be nice to have a semi-regular seminar on those libraries, where authors present what they are doing. We can arrange the virtual meetings under the JetBrains research. Please write to me if you want to present something. cc**@roman.belov**👍 1K 1👀 1z- 2
- 9

- j
John O'Reilly

10/22/2021, 6:29 PMI was looking for example to try out some of new features in Multik e.g. https://blog.jetbrains.com/kotlin/2021/10/multik-0-1-is-out/#Solving-linear-systems ....a- 2
- 7

- z
zain

10/26/2021, 10:11 AMHow do we round only if the number is 10.0 Ex 10.0 = 10 10.3 = 10.3 10.7 = 10. 7 Is there any easier wayaii- 4
- 12

- z
zain

10/28/2021, 10:14 AMHow to round double input to two decimal places? Given the output is Decimal something like

in JS`toFixed(2)`

iai- 4
- 5

- a
altavir

11/09/2021, 10:54 AMSome interesting task for those who wants to implement some low-level maths: https://twitter.com/noraltavir/status/1457991689897975812?s=20- 1
- 1

- a
altavir

11/10/2021, 5:56 PMI've just finished the first draft of tensorflow integration for KMath (using graph lazy computation of course). https://github.com/mipt-npm/kmath/tree/feature/tensorflow. Comments are welcome (especially from**@zaleslaw**). I plan to add more operations as extensions, direct operation builder (use tensorflow graph directly with some improvements from a special scope in algebra). Compilation of MST to graph (expressions and preliminary optimizations).🔝 2z- 2
- 4