Giter Site home page Giter Site logo

adaptation_systems's Introduction

Hi there 👋

GitHub Stats Card
AtCoder Trophies
jj1guj

How am I

What am I interested in

  • Parallel computing
  • 3D Display
  • Machine learning

What do I

Affiliation

Achievements

My skills

  • C/C++
  • Python3
  • Fortran
  • OpenGL
  • Pytorch
  • libtorch
  • OpenMP

Studying skills

  • Rust
  • Go
  • Ruby on Rails

Contact

adaptation_systems's People

Contributors

jj1guj avatar nyanyan avatar yz775 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

yz775 nyanyan

adaptation_systems's Issues

judge_task1.pyにおけるジャッジの並列化

今回TLが10分以内なので50個のテストケースに対してシングルスレッドでジャッジを行うとジャッジが完了するまでに8時間以上かかってしまう.
そのため、より円滑にジャッジを終了させるために並列化したいです.

judgeコードの浮動小数桁落ち/丸め誤差について

ジャッジコードでは浮動小数を用いてスコア計算をしていますが、これだと丸め誤差と桁落ちで正確な点数が計算できないと思います。
PythonなのでfloatをDecimalで置き換えるだけで良さそうです(私はあまりDecimalに詳しくありませんが…)
もしくは多倍長整数の恩恵を享受して、小数点を抜いた整数として値を扱っても良いかもしれないと思いました。

make_datasetの入力の最大桁数について

入力の最大桁数は30桁なので、浮動小数を使って入力を作るのではなく、30桁のそれぞれについてrandintを使って桁を生成する方が良いと思います。

私は手元で以下のように改造しました(コードの挿入方法がわからずベタ書きですみません)

def reduce_digit(s):
for i in reversed(range(len(s))):
if s[i] == '0':
s = s[:i]
else:
break
return s

for d in range(datasets):
N=random.randint(min(args.data_min,args.data_max),max(args.data_min,args.data_max))
A=[str('0.' + ''.join(str(random.randint(0, 9)) for _ in range(30))) for i in range(N)]
A=[reduce_digit(i) for i in A]
filename=os.path.join(path,str(d+args.seed).zfill(4)+".in")
with open(filename,mode='w') as f:
f.write("\n".join(A))

適切なスコア算出

READMEにも書いたように今は各グループの差分の絶対値を取り, 合計しているため点数が低ければ低いほどよい, という状態になっています.
これだと少し扱いづらいような気がするので点数が高ければ高いほどよい, という状態にし, 0点~10^30点くらいの範囲で点数が算出できるようにしたいです.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.