[ / / / / / / / / / / / / / ] [ dir / random / 93 / biohzrd / hkacade / hkpnd / tct / utd / uy / yebalnia ]

/prog/ - Programming

Programming

Catalog  Archive

Name
Email
Subject
REC
STOP
Comment *
File
Password (Randomized for file and post deletion; you may also set your own.)
Archive
* = required field[▶Show post options & limits]
Confused? See the FAQ.
Options

Allowed file types:jpg, jpeg, gif, png, webp,webm, mp4, mov
Max filesize is16 MB.
Max image dimensions are15000 x15000.
You may upload5 per post.


b9294b No.4111 [Open thread]

Hello /prog/, newfag here. I have about 7 years worth of experience programming professionally in various languages at various companies. Right now I'm out of work, and for all my job interviews the people ask if I'm an expert at [radom programming language] which I've used before. My trouble is I don't feel like an expert even though I smoke their technical questions. So I ask to you this, at what point in time did you realize you were an expert or at what point in time did you not feel like a fraud?

____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

b9294b No.4113

You may need to get better, but you can probably make do with a business translator.

"Expert" => "Reasonably competent."

"Ninja" => "Reasonably competent."

"Excellence" => "Reasonable competence."

"Exceed my expectations" => "Not be a drooling moron."

The scale of competency of programmers runs from

1. If you give them a task, they'll pretend to know how to do it and then produce nothing at all, while trying to keep the fiction up as long as possible. [DailyWTF candidates.]

2. If you give them a task, they'll produce something eventually, but it'll be complete shit and require a lot of further work before it can be used at all. [Indians.]

3. If you give them a task, they'll produce something that sort of works for you. Apply buzzword methodologies to distribute tasks over more of them, to have more done in the same time. Give them more time if you want a better product, repeat until product is good enough. [Reasonably competent programmers. The best anyone can hope for, and all that your interviewers are really selecting for.]

4. You work directly with them to produce a task, you supplying business information and they supplying technical information, and then they produce it, and it's awesome. Sometimes they come to you with a new thing that you realize you can find a business use for. [Experts.]

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

b9294b No.4115

how about in regards to googling? Do even the awesome experts google to figure stuff out?

The reason i ask is the job im looking at now is going to pay me double what my last job is, and the new job is only a 4 month contract

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

b9294b No.4184

I know that feel, though I'm far less experienced but I still know my way around.

Pretty much every programmer suffers from imposter syndrome.

>all my job interviews the people ask if I'm an expert at [radom programming language] which I've used before

You gotta figure out if they're a HR faggot spouting shit they don't know, or if they're an actual developer. If they demand you be an 'expert' they're probably the former. Use >>4113 as a reference.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

b9294b No.4185

>>4115

>Do even the awesome experts google to figure stuff out?

Yes. Even Carmack googles.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

b9294b No.4197

>>4111

Say you are an expert. You're a programmer, you know the fundamentals, you can be good enough in any given language within a week. HR has no idea what they want or need.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.



File: 1462755055842.jpg (22.71 KB,720x540,4:3,1417551031524.jpg)

ef2e2e No.4193 [Open thread]

Has anyone here ever made a bot.?

More specifically an online poker bot?

It seems like a fairly simple starting point with possibility of profit.

____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.


File: 1462054263873.png (350.02 KB,450x395,90:79,void gentoo.png)

536640 No.4169 [Open thread]

I'm currently working on a Chip-8 interpreter after a rolling it in a challenge thread on /g/, but I decided to take it a step further.

I want to make it cross platform compatible with every system and operating system possible. Linux (which I'm currently focusing on with SDL and ncurses (after I get it working with SDL) support), then Windows and OS X. I also want to use something like Turbo C for DOS and cc65 for C64 and Apple ][.

Is it at all possible or realistic to do this with one "project" and using several io_<platform>.h/c and #ifdef PLATFORMNAMEs without splitting it up into multiple projects, or am I completely full of shit?

____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.


File: 1460867482673.gif (4.93 MB,300x300,1:1,banana mri.gif)

0f8736 No.4129 [Open thread]

Hello /prog/ I am interested in learning about data transfer and file formats. I have a final project to do for my college program(a whole year away), and would like to get some project ideas or maybe even start it early.

I've been curious about how image data is formatted for example, but never had the time to learn since I had to focus on school work.

During this summer break I would like to learn to be able to programmatically manipulate images, transfer files using IR, and cool stuff like that. Any recommendations for books dedicated to the topic? Or at least websites/videos?

Lastly I am curious to learn about data transfer using RF. Is it possible to transfer files faster by using 4 different transmitters/receivers operating at different frequencies in parallel?

____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

0f8736 No.4134

Not knowing what Google is.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

0f8736 No.4148

>>4134

>2016

>current year

>using (((google)))

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.



File: 1461439931944.jpg (18.75 KB,300x225,4:3,python.jpg)

7c5b80 No.4144 [Open thread]

What in the god damn is wrong with my Python code?


from math import sqrt
a=float(input("a="))
b=float(input("b="))
c=float(input("c="))
posQuad=(-b+sqrt(b**2-4*a*c))/2*a
negQuad=(-b-sqrt(b**2-4*a*c))/2*a
print(str(posQuad) + ", " + str(negQuad))

It keep giving me a 'ValueError' for not calling math for 'sqrt' even though I did in the first line and when I do it individually for each 'sqrt' function, it gives me a 'NameError math not defined'.

____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

7c5b80 No.4147

I ran it, got this:


$ ./trash.py
a=3
b=2
c=1
Traceback (most recent call last):
File "./trash.py", line 7, in <module>
posQuad=(-b+sqrt(b**2-4*a*c))/2*a
ValueError: math domain error
$ ./trash.py
a=1
b=5
c=1
-0.20871215252208009, -4.7912878474779195
$

You're not running into an error about not declaring math. That's a math domain error. If your error was about the module, you'd get a NameError. Python doesn't make assumptions like you think it does. If you used sqrt without importing it, it wouldn't tell you shit about the "math" module, it would just complain that it doesn't know what sqrt is. Think about what a "domain" is in math. The problem is that you are using numbers that make your determinant negative, which means you're running a square root of a negative, which python's math module can't do.

A bigger issue is your order of operations is fucked up. Quadratic equation is x = (-b +/- sqrt((b^2) - (2ac)))/(2a). The way you have it there is wrong because order of operations places multiplication on the same precedence as division, which multiplies a after the division, effectively putting a in the numerator.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.



1b8cd5 No.4110 [Open thread]

Okay so i have done a little here, little there on codeacademy and i have very basic knowledge on python… I would like to learn java, c# and html to make my own programs or websites.

Do you have anything to recommend? Ex: reading material, website, torrents, blogs…?

____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

1b8cd5 No.4114

>want to make websites

>know python. expect to learn java, c# and html

To make websites, you need to know HTML, CSS, JavaScript, and some backend language. For the backend language, I suggest PHP. Not because it's good – it's complete shit – but because it's ubiquitous and there's a ton of information online about it and because you can save a lot of time by starting with WordPress or like.

Forget about Python, Java, and C#.

To learn JavaScript, read http://eloquentjavascript.net/ . Don't just run your eyes over the paper. Make webpages and node scripts as you work through the book.

For HTML and CSS, have https://developer.mozilla.org/en-US/ open all the time and STFW as you want to do things. Make sure you're reading about HTML5. Learn how to use your browser's developer console.

Since I already knew superior server side languages and was free to use them (read: I don't have a job in web development so nobody told me to use PHP) I never properly learned PHP and can't give you any advice on learning it, except that so many people use it that searching the web or stackoverflow.com or php.net documentation in particular should help you muddle things.

There actually is web development work in Java and C#, but if you aren't actively applying for those jobs or looking to move into one I wouldn't bother.

JavaScript is primarily put to evil and stupid ends, but it's a decent language and it can be put to very clever use. Don't forget about it except when you have something evil or stupid to do.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

1b8cd5 No.4136

>>4114

We use python for the backend at our company and so do many others including google. Python is a perfectly reasonable for a backend language.

OP, don't take advice from an anonymous image board.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.



File: 1425399186599.gif (2.34 MB,450x258,75:43,1420807662757.gif)

cdbcf9 No.1529 [Open thread][Last50 Posts]

What is the fastest way to program?
52 postsand1 image replyomitted. Click reply to view. ____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

cdbcf9 No.3901

>>3625

I'm still new to MVVM as well, but once you start working in bigger projects it has its benefits.

I have to work with C#/.NET and XAML using WPF. While it's still a pain to implement, it makes development of multi-lingual text resources with separated UI and data access bearable and maintainable. When you have to change to another database, you can switch out the entire data access stuff out for something else. Same with the UI, especially when you get a customer in a new country.

What I can't get around is VS12 and TFS (which I have to use); I think they suck huge cock.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

cdbcf9 No.3906

>>3625

It's useful for webdev, on pages that are way more complicated than they need to be.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

cdbcf9 No.3912

>>1898

This! Pretend that you're going to compare a lot of numbers in order to find out the highest etc.

Now try to do that without matrixes.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

cdbcf9 No.4071

>>1532

Found the autistic retard.

lrn2steno, faggot.

>>1529

Shitting out code in high-level languages and copying and pasting shit from other people while you import 90 fucking libraries and modules.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

cdbcf9 No.4121

>>1529

Think fast and type fast.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.



File: 1459893461130.jpg (258.14 KB,1156x652,289:163,ArduinoUnoPoster.jpg)

3f51ca No.4101 [Open thread]

I would like to learn programming with the arduino platform, I do not have any relevant programming experience so a book with good programming explanations would do great.

Anyways I have been tinkering around with arduino and have a decent understanding of electronics so that wouldnt be necesary.

____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

3f51ca No.4103

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.



1fc122 No.4088 [Open thread]

Programming/reverse engineering challenge: Figure out what my obfuscated code does.


/*
k.c

-1 17 36 29 19 -1 13 13 04 14
-1 00 00 00 00 -1 00 00 00 00
-1 00 00 00 00 33 00 00 00 00
-1 07 00 00 00 00 00 00 35 08
-1 00 00 00 00 00 31 00 00 00
-1 00 00 10 00 00 00 27 00 00
-1 00 00 00 19 00 00 00 00 00
-1 03 11 00 00 00 00 00 00 14
-1 00 00 00 00 -1 00 00 00 00
-1 00 00 00 00 -1 00 00 00 00

-1 -1 -1 -1 -1 -1 -1 -1 -1 -1
19 00 00 00 00 27 00 00 00 00
30 00 00 00 00 13 00 00 00 00
-1 22 00 00 00 00 00 00 -1 -1
26 00 00 00 00 00 13 00 00 00
13 00 00 24 00 00 00 09 00 00
14 00 00 00 34 00 00 00 00 00
-1 -1 22 00 00 00 00 00 00 -1
22 00 00 00 00 11 00 00 00 00
14 00 00 00 00 30 00 00 00 00
*/

int vt [10] [10], ht[10][10],inv
[10] [10] ,inh [10][10],sl
[10][10];;int cp(int x,int
y){{int s[10] ={0},h=ht[y]
[x],hs=0,xx=x ;for(;;){int
c=sl[y][xx--] ;if(c==-1)
break;if(s[c] )return 0;
s[c]=1;hs+=c; ;;if(hs>h)
break;}if(x+1>=10||sl[y]
[x+1]==-1){if(hs!=h)
return 0;}else if(hs
>=h)return 0;};;int s
[10]={0},v=vt[y][x],vs
=0,yy=y;for(;;){int c=sl
[yy--][x];if(c==-1)break;
if(s[c])return 0;s[c]=1;vs
+=c;if(vs>v) break;}if(y+1
>=10||sl[y+1 ][x]==-1){;;;
return vs==v ;}return vs<v;
}int s(int x ,int y){if(y>=
10)return 1; if(sl[y][x]==
-1){if(x+1< 10)return s(x
+1,y);return s(0,y+1);}for
(int i =1;i< 10;++i){sl[y]
[x]=i;if(!cp (x,y)){;;;;;;
continue;;;} int cd=0;if(x
+1<10)cd=s(x +1,y);else cd
=s(0,y+1);;; if(cd)return 1
;}sl[y][x]=0 ;retur
Post too long. Click here to view the full text.
____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

1fc122 No.4090

>>4088

A kakuro puzzle solver.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

1fc122 No.4099

>>4090

correct!

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

1fc122 No.4102

Because this doesn't exist.

http://jsbeautifier.org/

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.



File: 1459696264774.jpg (162.1 KB,728x520,7:5,1458147745456.jpg)

553ff0 No.4089 [Open thread]

Hey /prog/, I have a large project I have been brainstorming for a few years or so and I now want to start programming it. The problem is I am a little indecisive on what language to do it in. Anyone have any tips on this matter?

I was thinking of doing C++ or Java but a friend got me into Haskell lately. It really shouldn't matter too much, but I just am wondering if anyone has experience in these matters. Thanks!

____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

553ff0 No.4091

File: 1459739026287.gif (196.82 KB,500x500,1:1,PoEhh9a.gif)

It all depends on the project, you dummy, and you've said nothing about it.

Is it a web application? Desktop application with a GUI? CLI? Device driver? Correctness matters? Performance? Extensibility? Portability? Do you actually want to finish the project or learn a language better? Do you expect any external contributions? Say something, jeez.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

553ff0 No.4092

>>4091

Desktop with networking and heavily text-based. I want to actually finish it.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

553ff0 No.4094

>>4092

Then you probably should pick C++ or Java, whatever you know best

If you don't have any good reason to use Haskell, then there's no need to because you'll have much less libraries to choose from.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.



File: 1428950596261.png (1.08 KB,169x51,169:51,1f12ea246c06418bada30c745a….png)

89a872 No.2032 [Open thread]

The equation in pic related describes the behavior of cubes in any number of dimensions, with m being the total number of dimensions in a cube, and f(n m) describes "the number of n dimensional forms in a m dimensional cube."

Here's and example
>For a 2d cube (flat square), m=2. A line segment is n=1. Therefor f(n m)=f(1 2)=4, since a square has four sides

Let's try again and count the edges in a 3d cube
>For a 3d cube, m=3. A line segment is n=1. f(n m)=f(1 3)=12, since there are 12 edges to a cube

Now let's change n=1 (a line) to n=2 (a flat square)
>Fore a 3d cube, m=3. n=2 is a flat square. Therefor f(n m)=f(2 3)=6, since a cube has 6 sides


Now how would I go about writing this in C++? I've been fucking around with it all afternoon and nothing I do seems to work
21 postsand1 image replyomitted. Click reply to view. ____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

89a872 No.2363

>>2353

>has no place in real life applications

Yeah, totally. Who needs those shitty "parsers" anyway?

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

89a872 No.2433

>>2363

Shift-reduce parsers are typically superior to recursive descent parsers. RD is just easier to implement by hand.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

89a872 No.2435

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

89a872 No.4057

>>2032

What the fuck? You calculate n choose k by using pascal's triangle + memoization. Does anyone on /prog/ know how to program?


#include <stdio.h>
#include <stdint.h>
/* col > row is undefined */
uint64_t tb[5000][5000];
uint64_t pascal(const uint64_t row, const uint64_t col) {
if(!col || col == row) return tb[row][col] = 1;
if(tb[row][col]) return tb[row][col];
return tb[row][col] = pascal(row - 1, col - 1) + pascal(row - 1, col);
}
int main() {
uint64_t n, k;
while(scanf("%lld%lld", &n, &k) == 2) {
printf("%lld choose %lld = %lld\n", n, k, pascal(n, k));
}
return 0;
}

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

89a872 No.4075

File: 1459192375148.jpg (16.65 KB,251x244,251:244,1242224296128.jpg)

>>4057

>clogging up the cache with a 5000x5000 2d array of 64 bits integers

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.



File: 1457020257517.jpg (33.72 KB,350x350,1:1,798.jpg)

d141e4 No.3998 [Open thread]

Does anyone here freelance, how is your experience with it? Do you make enough for a living?

____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

d141e4 No.4043

I personally call it freelance but it's more like I'm unemployed.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

d141e4 No.4051

Did it for a few years. If you work hard and make people happy, you'll have more work offered to you than you'll have time for. Once you get to that point, start letting go of your crappy clients and retain your favorites. I ended up with 2 to 3 great clients who kept me busy almost full time. I hate saying this, but you'll probably have a better time working for a profitable business.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

d141e4 No.4059

freelancing sucks, working full time is so much better

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

d141e4 No.4066

>>4043

this tbh fam.

Software can be written anywhere. You can't compete with the best because you're probably not the best, and you can't compete with the worst because you wont be able to beat them in pricing or even scamy tactics.

CS is a maymay.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

d141e4 No.4067

>Does anyone here freelance,

I do.

>how is your experience with it?

Shit.

>Do you make enough for a living?

No.

>>4043

This.

I don't even have any idea how the fuck I'm supposed to find more than 30 dollars a week worth of work.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.



a172a9 No.4010 [Open thread]

Is Java too hard to learn as a first language?

____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

a172a9 No.4011

Not really, what's hard is getting good at programming in general.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

a172a9 No.4017

>>4010

Java is one of the simpler languages so it is often used to teach programming. other simple good teaching languages are python, ruby, and javascript.

but for next time you should know programming is a skill and the programming languages are the tools. asking if Java is too hard for a first language is like asking if photoshop is too hard to learn how to edit photos.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

a172a9 No.4042

>>4017

An analogous problem would be is a Land Rover too hard to drive as a first car.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

a172a9 No.4045

>>4042 I came to the conclusion that Python is probably the language I will learn first, as there are a lot of projects to apply it

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

a172a9 No.4052

>>4045

It's a good one, too. At least to familiarise yourself with the concepts.

Once you're comfortable with Python, I'd suggest giving C a go.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.



File: 1457891881754.jpg (11.89 KB,189x267,63:89,grey fox.jpg)

70c92c No.4013 [Open thread]

HURT ME MORE SNAKE, MAKE ME FEEL ALIVE AGAIN!



import numpy

"""training data"""
x = numpy.array([[1,1,1,0,0,0],
[1,0,1,0,0,0],
[1,1,1,0,0,0],
[0,0,1,1,1,0],
[0,0,1,1,0,0],
[0,0,1,1,1,0]])

correct_label = numpy.array([[1, 0],
[1, 0],
[1, 0],
[0, 1],
[0, 1],
[0, 1]])

"""initializes weight and bias as zero vectors"""
weight = numpy.zeros((6, 2))
bias = numpy.zeros((6, 2))

def softmax(a_vector):
"""Compute a logit for a vector."""
denom = sum(numpy.exp(a_vector))
logit = numpy.exp(a_vector)/denom
return logit

def softmax_a_set(a_set):
"""computes logits for all vectors in a set"""
softmax_set = numpy.zeros(y.shape)

for x in numpy.nditer(a_set):
x = softmax(x)

return softmax_set

def cross_entropy(logit, label):
"""generates the cross entropy between label and logit"""
return -1*sum(numpy.log(logit)*label)

def train(x):
"""walks the function closer to the best value"""
pass

y = numpy.dot(x,weight) + bias

____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

70c92c No.4034

what is this shit?

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

70c92c No.4035

>>4034

someone who's seen docstrings but doesn't know how they work.

also looks like neural network stuff.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.



File: 1457894670130.jpg (25.87 KB,498x321,166:107,why.jpg)

c1830a No.4014 [Open thread]

Windows forced me to update so I turned automatic updates off. And it restarted before I hat save.

____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

c1830a No.4015

Windows will still restart by itself even if you don't want it to. I have now to rewrite everything. I'm now forced to be up at night for this stupid shit.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

c1830a No.4022

Save often, brother, this is like computer literacy 101

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

c1830a No.4024

>>4014

>>4015

Why not not use windows?

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.



Delete Post [ ]
[]
[1] [2] [3] [4] [5] [6] [7] [8]
| Catalog | Nerve Center | Random
[ / / / / / / / / / / / / / ] [ dir / random / 93 / biohzrd / hkacade / hkpnd / tct / utd / uy / yebalnia ]