Skip to content

Instantly share code, notes, and snippets.

@5kg
5kg / marshal.go
Last active August 29, 2015 14:23
package main
import (
"log"
"io/ioutil"
"github.com/golang/protobuf/proto"
"./example"
)
@5kg
5kg / foo.c
Created April 27, 2015 21:36
ub-icf
const char * const string;
static char *handle;
void foo()
{
xxx(handle);
}
@5kg
5kg / -
Created April 27, 2015 12:04
diff --git a/example/bwmf/kldiv_loss.go b/example/bwmf/kldiv_loss.go
index 764a46d..3dbd771 100644
--- a/example/bwmf/kldiv_loss.go
+++ b/example/bwmf/kldiv_loss.go
@@ -3,6 +3,8 @@ package bwmf
import (
"math"
"sort"
+ "time"
+ "fmt"
package main
import (
"fmt"
"github.com/golang/protobuf/proto"
pb "github.com/taskgraph/taskgraph/example/bwmf/proto"
"io/ioutil"
"os"
"strconv"
)
etcd is running on localhost:4001
# github.com/taskgraph/taskgraph/op
op/projected_gradient.go:29: undefined: Timer
FAIL github.com/taskgraph/taskgraph/integration [build failed]
➜ taskgraph git:(port_cpp) ✗ git diff
➜ taskgraph git:(port_cpp) ✗ ./test-bwmf
etcd is running on localhost:4001
=== RUN TestBWMF
2015/04/23 12:43:49 controller.go:45: Controller starting, name: bwmf_basic_test, numberOfTask: 1
2015/04/23 12:43:49 healthy.go:64: got free task [/bwmf_basic_test/freeTasks/0], randomly choose 0 to try...
@5kg
5kg / -
Last active August 29, 2015 14:19
Topic #0:
car like got stuff thing good just don ll ve course new heard right deleted sounds isn kind cars company
Topic #1:
thanks mail windows help know advance computer info use does hi need looking information code program edu using dos email
Topic #2:
crowd 00 cost bike questions mark number com offer hp phone good 250 500 built sale cable luck 15 bought
Topic #3:
Loading dataset and extracting TF-IDF features...
done in 2.520s.
Topic #0:
game good car team don like just red current play ll games really quality want think new thought cars price
Topic #1:
mamma 00 edu mail think file sale windows luck problem fax good include works pc use send 10 flyers program
Topic #2:
heads thanks advance card know file hi files gives leafs mail bus format ram need info like does 16 drivers
@5kg
5kg / doc
Created April 22, 2015 08:45
Loading dataset and extracting TF-IDF features...
done in 2.653s.
Fitting the NMF model with n_samples=2000 and n_features=1000...
done in 4.910s.
Topic #0:
people think did time law government israel rights say case said make state true evidence don mr point gun let
Topic #1:
thanks know does mail advance hi info interested anybody email looking help appreciated card information list send post need video
etcd is running on localhost:4001
=== RUN TestBWMF
2015/04/21 14:10:32 controller.go:45: Controller starting, name: bwmf_basic_test, numberOfTask: 1
2015/04/21 14:10:32 healthy.go:65: got free task [/bwmf_basic_test/freeTasks/0], randomly choose 0 to try...
2015/04/21 14:10:32 bootstrap.go:171: standby grabbed free task 0
task 0: 2015/04/21 14:10:32 bootstrap.go:60: starting at epoch 0
task 0: 2015/04/21 14:10:32 bootstrap.go:85: framework starts to run
2015/04/21 14:10:32 bwmf_task.go:241: doEnterEpoch, task 0, epoch 0
task 0: 2015/04/21 14:10:32 data_request.go:141: serving grpc on 127.0.0.1:63006
task 0: 2015/04/21 14:10:32 data_request.go:101: data request /proto.BlockData/GetDShard to task 0, addr 127.0.0.1:63006
0 1.2167709e+06
0 1.2224444e+06
0 1.2307871e+06
0 1.260106e+06
1 27401.582
1 33980.64
1 34229.844
1 34920.914
2 20299.98
2 24624.56