« first day (3051 days earlier)      last day (2122 days later) » 
00:00 - 21:0021:00 - 00:00

21:00
@AlexanderReynolds that is the transpose of what I want but ultimately the same idea as what I had.
@piRSquared yea was writing before you posted your code, same difference.
That's another import so... Not really worth it
@piRSquared haven't seen anything better before, but it would be a nifty function.
like split_complex() or something
yes... You complete me... /ahem what I meant was, you understand my intent.
lol
@piRSquared in what context is this useful? just curious, since usually you can just operate with the complex numbers directly.
21:08
I'm generating points for a regular polygon... but you're right. Thinking downstream, I'm plotting a scatter plot. At that point, I could use a.real and a.imag
oh right, so just using the complex domain to generate the points. ic.
wim
wim
hey @piRSquared get back to work
They can be useful for fourier transforms too I think.
@3141 ya but you normally don't need them separated in different columns. I've done research in Fourier analysis, so that's why I asked the question :)
@wim oh snap! You're right... I've been slacking. Ok, I will. Not today, but I will
21:11
I once made a program which visualized the transform which needed both components seperately. I'll see if I can find it.
@3141 Like the reputation
Would you know how the fourier transform is useful in machine learning? I read an article about it in the New scientist about a year ago, would you have any idea?
Yeah, I have to be careful not to do anything now.
acoustic or sound based models can use fourier transform to get features
can be used for speech based modeling or something along those lines too
21:15
I think this was something to do with matrix operations though.
i see, not sure in that regards.
@3141 Convolution is multiplication in the Fourier domain. If you have large kernels, it's more efficient to do FFT and multiply than otherwise. Perhaps that?
import numpy as np
from numpy.random import choice as C
from itertools import islice
import matplotlib.pyplot as plt

def G(n=3, r=.5):
    poly = np.exp(np.linspace(0, 2 * np.pi, n + 1)[:-1] * 1j)
    P = 0j
    while True:
        P = (P + C(poly)) * r
        yield P

fig = plt.figure(figsize=(10, 10))
ax = fig.add_subplot(111)
pt = np.array([*islice(G(6, 1/3), 50_000)])
ax.scatter(pt.real, pt.imag, s=1)
plt.show()
E.g. if you convolve two signals of the same size, it's an N^2 operation, if you do it with FFT, it's N log(N)
Yeah, perhaps. The article was very small, and it gave pretty much no actual detail.
Nice fractal @piRSquared
21:31
I don't think it's used much for CNNs at least for that purpose, since kernels are generally small compared to input image
Its certainly the only time I've heard of fourier transforms being used for machine learning of any kind.
wim
wim
* (I prefer cheaper equivalents where possible)
On a related topic, do you think I'd have to use a CNN to classify chess positions as winning or losing, with the inputs being heat maps of the chess board?
@3141 You'd have to at least do some scaling with the types of pieces at each position I'd imagine?
Heatmap of simply positions currently filled doesn't seem descriptive enough
21:44
0
Q: Python eval function : Set right index and dimensions for matrix multiplication

youpilat13In Python2, the expressions below returned by eval(der_input[j]) and eval(der_input[l]) have the dimensions (100,100) (dimPoints = 100). The matrix invCrossmatrix has a 4x4 dimensions. So, to do matrix multiplication betweeen these 3 factors, I try to take only the [0:dimPoints][0:4] for eval(d...

wat?
>>> arr = np.array([1+2j, 3-4j, 2])

>>> arr
array([1.+2.j, 3.-4.j, 2.+0.j])

>>> arr.view(dtype=np.float64).reshape(-1,2)
array([[ 1.,  2.],
       [ 3., -4.],
       [ 2.,  0.]])
@piRSquared ^ if you don't mind the implementation detail
I didn't check but I suspect this conversion is not guaranteed to work
@AndrasDeak that's a good one
@AndrasDeak :clap:
and of course beware if your default dtype is float32 ;)
When I first thought about doing this (bear in mind that I'm inexperienced when it comes to machine learning), I thought of just using a simple network with one hidden layer, taking an input of 8x8 heatmaps of the chessboard, with each piece corresonding to a different value, e.g. if a square has a white pawn on it it will have a value of 1, and if it has a black pawn on it, -1. There are obvious shortcomings to this approach, and I'm pretty stumped, both about the input heatmaps
and the structure of the network.
Nice job @AndrasDeak
22:08
@Code-Apprentice you're asking wat here, and badgering the asker in comments for an MCVE. Why no close vote?
it's too new to badger the room for
ah, I see. Well not anymore :P
I probably know what their issue is
@Code-Apprentice also, you can (should) still cast a close vote and not post a cv-pls here
 
1 hour later…
23:22
^ question was edited (after Andras's comments, unsure what to do, so I'm gonna leave it for now, too sleepy)
rbrb
23:46
@shad0w_wa1k3r the most recent edit is still not an MCVE because it uses several undefined named.
00:00 - 21:0021:00 - 00:00

« first day (3051 days earlier)      last day (2122 days later) »