THẢO LUẬN

thg 3 16, 2020 3:34 SA

Mong là bài này hữu ích cho bạn 😃

0

Nếu anh không nhầm thì feature important của sklearn chỉ có trong các thuật toán tree base hoặc ensemble method. Trong thực tế trước kia anh dùng thì khá nhiều trường hợp loại sử dụng important set cho kết quả không tốt hơn full set thậm chí là kém hơn. Với cả việc chọn top-k cũng là một vấn đề. Nên trong feature selection anh thường thêm vài bước nữa như sử dụng RFE(Recursive Feature Elimination) hay plot ranking(1D, 2D) để đánh giá phân phối hay độ tương quan giữa các feature. Nhưng vẫn có trường hợp đấy cả các chỉ số đánh giá của feature rất lởm nhưng thực tế đưa vào thuật toán thì nó lại quan trọng. Âu cũng là cái niềm đau =))

+1
thg 3 16, 2020 3:08 SA

Bài viết tuyệt quá anh ơi 😃)

0

Dạ em cảm ơn anh:))

0

👍

+1

t = AnnoyIndex(f, 'angular') , cop thì đừng cắt phần import cái này đi chứ b, mình tìm đi tìm lại xem cái hàm này define ở đâu 😦

0
thg 3 16, 2020 2:40 SA

cám ơn b rất nhiều.

0
thg 3 16, 2020 2:33 SA

Thank you SO MUCH, I just spent the last 4 days beginning to learn to code for Android and have not been able to get very far until I came across this series. I am using Android Studio 3.6 and was a little lost creating the Packages and end up just creating Java classes and also had a minor issue with MySeekBarTheme not being defined in styles.xml or @android:color/white not being defined in colors.xml however managed to get it all working. Please continue with the next part of this series, you are the BEST 😃

+1
thg 3 16, 2020 1:44 SA

=)) bạn có thể làm bài viblo chia sẻ cách làm giàu k =))

0
thg 3 16, 2020 12:42 SA

Cảm ơn anh, bài viết rất hữu ích ạ 💯

0

bài viết rất hay ! cảm ơn bạn đã chia sẻ.@@

0

Cảm ơn em vì những chia sẻ về những kiến thức hết sức thú vị 😃) 😃) Thường xuyên ra thêm bài em nhé 😃) 😃)

0
thg 3 15, 2020 6:20 CH

Bài viết hay quá. Mong bạn tiếp tục share những bài thế này nhé. Cảm ơn bạn rất nhiều 🥳

0
thg 3 15, 2020 4:56 CH

Mình nghĩ có lẽ bạn nên đọc kỹ xem đúng đường dẫn và thư mục chưa vì mình tạo một VPS mới và cấu hình theo cái là được ngay 😉

0

Cảm ơn bạn đã quan tâ, mình cũng mới viết nên có thể code hơi smell mong bạn thông cảm! Mình có sử dụng thêm Sortable js nữa. 🤡😁

<div id="board_body" class="">
            <div class="board-content d-flex" id="dragdiv">
                <ul id="list_sortable" class="list-container px-3">
                    @php $i = 1; @endphp
                    @foreach($columns as $column)
                        <li id="node{{ $column->id }}" class="list" local="{{ $i }}" id-local="{{ $column->id }}">
                            <div class="list-content">
                                <div class="m-title-list pt-2 m-2">
                                    <span class="text-body">{{ $column -> name }}</span>
                                    <div class="float-right rounded-circle text-center icon-dotted dropdown">
                                        <button type="button" class="btn btn-default dropdown-toggle rounded-circle" data-toggle="dropdown">
                                            ...
                                        </button>
                                        <div class="dropdown-menu">
                                            <a href="javascript:;" class="dropdown-item m-delete-column">Ẩn danh sách</a>
                                        </div>
                                    </div>
                                </div>
                                <ul id="m-card" class="m-card-sortable m-card rounded">
                                @php $j = 1; @endphp
                                @foreach($column->cards as $card)
                                        <li class="rounded m-card mb-2 m-column m-content" local="{{ $j }}" id-local="{{ $card->id }}" column-id="{{ $column->id }}">
                                            <div class="m-card-img d-none">
                                                <img src="{{ asset('/img/1.jpg') }}" alt="">
                                            </div>
                                            <a href="javascript:;" class="p-2" data-toggle="modal"
                                               data-target="{{ '#card'.$card->id }}">
                                                <div class="m-title-list mb-1">
                                                    <span class="text-body m-card-name-list">{{ $card->name }}</span>
                                                    <div class="d-none float-right rounded-circle text-center icon-dotted dropdown {{ 'm-option'.$card -> id }}">
                                                        <button type="button" class="btn btn-default dropdown-toggle rounded-circle" data-toggle="dropdown">
                                                            ...
                                                        </button>
                                                        <div class="dropdown-menu">
                                                            <div class="dropdown-item m-delete-card">Xóa thẻ</div>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="card-content d-flex align-items-center justify-con-tent-between">
                                                    <span @if(strtotime($card ->deadline) >= strtotime(\Carbon\Carbon::now()) || ($card->deadline == null) || ($card->success)) @if($card->success)class="rounded m-deadline-column p-1 success" title="thẻ đã hoàn tất" @else class="rounded m-deadline-column p-1 normal" title="thẻ đã chưa hết hạn" @endif @else class="rounded m-deadline-column p-1 danger" title="thẻ đã hết hạn" @endif>
                                                        <i class="far fa-clock text-white"></i>
                                                        <span class="text-white m-card-deadline">{{ $card ->deadline }}</span>
                                                    </span>
                                                    <span class="text-body rounded p-1" title="bình luận">
                                                        <i class="far fa-comment"></i>
                                                        <span class="num-comment">{{ count($card->comment) }}</span>
                                                    </span>
                                                    <span class="text-body rounded p-1 d-none" title="tệp đính kèm">
                                                        <i class="fas fa-paperclip"></i>
                                                        <i>2</i>
                                                    </span>
                                                    <span class="success rounded p-1 d-none" title="số mục đã hoàn thành">
                                                        <i class="far fa-check-square text-white"></i>
                                                        <span class="text-white">3/7</span>
                                                    </span>
                                                </div>
                                            </a>

                                            {{--truyen vao modal-card voi bien $card--}}
                                            @include('board.modal-card')
                                        </li>
                                        @php $j++; @endphp
                                    @endforeach
                                </ul>
                                <div class="m-list-footer p-2">
                                    <span class="mx-2">+</span>
                                    <span class="">Thêm thẻ khác</span>
                                </div>
                                <div class="m-add-card d-none p-2 pt-0">
                                    <div style="height: 50px;" class="bg-white rounded">
                                        <input type="text" class="form-control my-2 border-0 m-name-card" placeholder="Nhap tieu de cho the..." name="name">
                                    </div>
                                    <div class="mt-2">
                                        <button class="btn btn-success p-2 m-create-card">Them</button>
                                        <button type="button" class="close p-2">
                                            <span aria-hidden="true">
                                                <i class="fas fa-times text-body"></i>
                                            </span>
                                        </button>
                                    </div>
                                </div>
                            </div>

                        </li>
                        @php $i++; @endphp
                    @endforeach
                </ul>
                <li class="m-add-new-list rounded p-2">
                    <div class="text-center" style="width: 260px!important;">
                        <span>+ Thêm danh sách mới</span>
                    </div>
                </li>
            </div>
        </div>
+1
thg 3 15, 2020 4:32 CH

@thanhnguyen vâng, ý em là bất đồng bộ đó ạ. Ví dụ 1 route cõng khoảng 20 task xử lý khác nhau, thay vì xử lý từng task theo đồng bộ thì xử lý đồng thời 20 task và promise để render kết quả. @hongquanfit e cũng xử lý queue rồi nhưng chỉ dành cho những task xử lý sau kiểu như email hoặc nhận callback sau thôi. Trong PHP7 có thread tuy nhiên laravel em thử áp dụng nhưng không được. Mong các pro chỉ giáo

0

Chỉ đơn giản là thay method put_comment thành method delete_object thôi 😄 .

0

Bạn làm y hệt như trên , chỉ thay đổi method create_multicomments thành delete_multicomments trong file views.py như thế này thôi nhé :

def delete_multicomments(request):
    # Bước 2 : Chọn bài viết, lấy post_id và nội dung comment muốn reply
    message = request.POST['message']
    post_id = request.POST['post_id']
    graph = fanpage_graph_object(request)
    comments = graph.get_connections( id = post_id, connection_name = 'comments' )['data']
    
    #Bước 3 : Thực hiện xóa toàn bộ comment
    for comment in comments:
        graph.delete_object(object_id = comment['id'] , message = message)
    return HttpResponseRedirect(f"https://www.facebook.com/{post_id}")
0
thg 3 15, 2020 7:52 SA

thanh niên google dịch bài của google 😃)

0
Viblo
Hãy đăng ký một tài khoản Viblo để nhận được nhiều bài viết thú vị hơn.
Đăng kí